Anti DDoS fix for phx 3.11.0
I had a problem with phoenix where if you use a Proxy IP after a certain amount of connections it blocks the Proxy IP so no connections can come through, for those who have difficulty with this i'll tell you all the fix, this is only if the enable_antiddos column on the server_settings doesn't update.
FULL CREDITS TO zMagenta for this fix & only for people who have the source.
Right, I'll guide you through step by step, this is how I fixed it. Firstly, open up the project file in Phoenix in SharpDevelop/C++ editing programs.
First, search in all files
if (AntiDDosSystem.smethod_2(text)
and you should find the line
if (AntiDDosSystem.smethod_2(text) > 10 && text != "127.0.0.1" && !LicenseTools.bool_0)
Change that line to:
if (AntiDDosSystem.smethod_2(text) > 10 && text != "127.0.0.1" && text != "YOURPROXYIPHERE" && !LicenseTools.bool_0)
Re-compile the emulator, and voila!
No hate, just giving it to people that need it.
100% zMagenta
Re: Anti DDoS fix for phx 3.11.0
Who the hell uses phoenix?
Re: Anti DDoS fix for phx 3.11.0
Alot of Hotels, have a-look you'll learn something :)
Re: Anti DDoS fix for phx 3.11.0
You should tell us to replace 192.169.80.182 by our proxy ip..
(Easy to figure out but not everyone here can code)
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
azaidi
You should tell us to replace 192.169.80.182 by our proxy ip..
(Easy to figure out but not everyone here can code)
It does say at the bottom (this is for attackprotect.com) so they should be able to figure it out, but i'll update it :)
Re: Anti DDoS fix for phx 3.11.0
Bozzie remove the ddos proxy provider link -> http://forum.ragezone.com/f333/regar...hreads-938831/
Anyway just disable the antiddos system its useless
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Keyuko
But this is to-do with Habbo, and is the DDoS system for Phoenix not for any TCP, and like me some people can't remove the antiddos system as it doesn't work well it didn't for me and zMagenta so he came up with this fix.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Mush
Who the hell uses phoenix?
This is the stupidest question.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Bow
This is the stupidest question.
Tell me about it, in my opinion R63B is just full of Bugs and what-not until a stable and bug-free version is released, i'm pretty sure a-lot of Hotels uses Phoenix, skids.
Re: Anti DDoS fix for phx 3.11.0
Just edit server_settings table, edit "enable_antiddos" 1 = disabled, 0 = enabled. Aaron genius :) (joke, Aaron is bad)
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
BurakDev
Just edit server_settings table, edit "enable_antiddos" 1 = disabled, 0 = enabled. Aaron genius :) (joke, Aaron is bad)
As I said in the post, for some people aka Me and zMagenta this didn't work.... sure I and others would of tried that.
Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
BurakDev
Just edit server_settings table, edit "enable_antiddos" 1 = disabled, 0 = enabled. Aaron genius :) (joke, Aaron is bad)
That and change secure_sso or something similar from 1-enabled to 0-disabled worked for my friends hotel.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Vrop93
That and change secure_sso or something similar from 1-enabled to 0-disabled worked for my friends hotel.
True, you need change "enable_securesessions" to 0
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
BurakDev
True, you need change "enable_securesessions" to 0
Did you read the Post atall?!?!?! as I said it didn't work for Me and zMagenta so in-case this is the same for other people i'm releasing this alternative method, Jheeze look at the post before thinking you're Mr. Knowitall.
Re: Anti DDoS fix for phx 3.11.0
Yeah, I'm very early with my answer. I know!
To the question: "Who the hell uses Phoenix".
Some Hotels use Phoenix, the reason for that is: Phoenix is stabil, and don't have a hundred of bugs how butterstorm, and the other shit. Okay the client will loos great with a r63b emulator but phoenix is much better. So don't aks who uses phoenix. Better ask, who the fuck use the buggy butterstorm shit?
Re: Anti DDoS fix for phx 3.11.0
If your reverse proxy supports this header, simply add this to your client:
PHP Code:
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_REAL_IP"];
mysql_query("UPDATE users SET ip_last = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE username = '" . USER_ID . "'");
// If your CMS doesn't support USER_ID, find another identifier for that specific user.
I recommend you add that to your global.php.
Warning: Be sure that you don't have $_SERVER["remote_addr"] set to another variable. In addition, if you use CloudFlare, this could turn up some problems, as the IP's will turn into CloudFlare's
Quote:
Originally Posted by
Luminia
Yeah, I'm very early with my answer. I know!
To the question: "Who the hell uses Phoenix".
Some Hotels use Phoenix, the reason for that is: Phoenix is stabil, and don't have a hundred of bugs how butterstorm, and the other shit.
I think that's the most hilarious spelling of stable I've ever seen.
Re: Anti DDoS fix for phx 3.11.0
This can be called as :
"IP Based Socket Anti Flood", but not an Anti DDoS. :P
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
MaxZeus
This can be called as :
"IP Based Socket Anti Flood", but not an Anti DDoS. :P
I agree. This doesn't solve DDoS-attacks.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Bow
This is the stupidest question.
What kind of comment is it an ironic question?
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Mush
What kind of comment is it an ironic question?
No. It's a stupid question.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Bozzie
Tell me about it, in my opinion R63B is just full of Bugs and what-not until a stable and bug-free version is released, i'm pretty sure a-lot of Hotels uses Phoenix, skids.
Phoenix is a bunch of shit, gets to much CPU and doesn't use any cache.
Quote:
Originally Posted by
Crypt0nite
I agree. This doesn't solve DDoS-attacks.
To support your comment, you can't solve ddos attacks.
You can simply build fail-overs or stronger connections OR some other tricks, but the impact will still affect services.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Mister. M
Phoenix is a bunch of shit, gets to much CPU and doesn't use any cache.
To support your comment, you can't solve ddos attacks.
You can simply build fail-overs or stronger connections OR some other tricks, but the impact will still affect services.
To sum up your post, proxy's are useless either.
If a kid wants to put the service offline, they could DDoS the proxy. DDoS-attacks are so strong these days.
Re: Anti DDoS fix for phx 3.11.0
Quote:
Originally Posted by
Luminia
Yeah, I'm very early with my answer. I know!
To the question: "Who the hell uses Phoenix".
Some Hotels use Phoenix, the reason for that is: Phoenix is stabil, and don't have a hundred of bugs how butterstorm, and the other shit. Okay the client will loos great with a r63b emulator but phoenix is much better. So don't aks who uses phoenix. Better ask, who the fuck use the buggy butterstorm shit?
# REMOVE THIS POST PLEASE. Comment to old thread. Sorry!