Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Guide] DDoS TCP Proxy Tutorial (Linux VPS)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Noman" data-source="post: 234143" data-attributes="member: 4565"><p>This tutorial will help you create a cheap DDoS Protected Proxy, without all of the shenanigans, if you need a cheap place to purchase your DDoS protected VPS then I reccomend <a href="http://goo.gl/a7ytw1" target="_blank">BuyVM.net</a>, make sure you buy a DDoS protected IP.</p><p></p><p><strong>Tutorial Authors:</strong></p><p>@[USER=37668]MikeOxlong[/USER] (Spock)</p><p>Noman (Noz)</p><p></p><p><strong>Special Thanks:</strong></p><p>Haproxy Developers</p><p>Viking Community</p><p></p><p><strong>What you need:</strong></p><p>- CentOS 6.x 64bit</p><p>- Haproxy</p><p>- Nano</p><p>- DDoS Protected VPS</p><p>- PuTTY (Windows Users, for Mac and Linux (*nix systems) Users go into Console and type in SSH and root@ip)</p><p></p><p><strong>Notice for Beginners:</strong> Make sure you type all this in the SSH Console!</p><p></p><p>How to do it:</p><p></p><p><strong>1) Install Nano</strong></p><p></p><p>[CODE]</p><p>yum install nano</p><p>[/CODE]</p><p></p><p>If it asks for anything, say yes! (Y)</p><p></p><p><strong>2) Install Haproxy</strong></p><p>[CODE]</p><p>yum install haproxy</p><p>[/CODE]</p><p></p><p>Again, if it asks for anything, say yes! (Y)</p><p></p><p><strong>3) Configure Haproxy</strong></p><p></p><p>First of all, you will need to make sure that the file is on your server, type into the SSH Console Excluding SQL Query.</p><p></p><p>[CODE]</p><p>nano /etc/haproxy/haproxy.cfg</p><p>[/CODE]</p><p>Delete what ever is in there (clear it all) and replace it with this code (replacing the bits in red)</p><p></p><p>[CODE]</p><p>global</p><p>daemon</p><p>log /dev/log local4</p><p>maxconn 400000</p><p>ulimit-n 810000</p><p></p><p>defaults</p><p>log global</p><p>contimeout 4000</p><p>clitimeout 42000</p><p>srvtimeout 43000</p><p></p><p>listen proxy1 ddos-protected-vps-ip:port-you-wish-to-use</p><p>mode tcp</p><p>balance leastconn</p><p>server proxy1_1 target-ip:target port</p><p>[/CODE]</p><p></p><p><em><strong>To copy the config above just select the text then CTRL+C and then right click in the SSH Console (PuTTY only) </strong></em></p><p></p><p>Make sure you save the file once you have edited it!</p><p></p><p><strong>4) Start Haproxy</strong></p><p></p><p>Type into your SSH Console</p><p>[CODE]</p><p>service start haproxy</p><p>[/CODE]</p><p></p><p><strong>5) Editing database (Phoenix)</strong></p><p></p><p>Edit these tables in your database only for Phoenix, Butterfly and R63B will not need database alterations. Run the MySQL Query below:</p><p>[CODE]</p><p>UPDATE server_settings SET enable_securesessions = '0';</p><p>UPDATE server_settings SET enable_antiddos = '1';</p><p>UPDATE server_settings SET ip_lastforbans = '1';</p><p>[/CODE]</p><p></p><p>You should be set, if you have any problems, go back through the steps before contacting us!</p><p></p><p><strong>If you have any questions, or need any support. Please do not hesitate to PM Me or PM @[USER=37668]MikeOxlong[/USER] or Add </strong></p><p><strong><strong><span style="color: #ff0000">internetserviceprovidings</span></strong> or <strong><span style="color: #ff0000">nozonskype</span></strong> to your Skype list and we will be happy to help!</strong></p></blockquote><p></p>
[QUOTE="Noman, post: 234143, member: 4565"] This tutorial will help you create a cheap DDoS Protected Proxy, without all of the shenanigans, if you need a cheap place to purchase your DDoS protected VPS then I reccomend [URL='http://goo.gl/a7ytw1']BuyVM.net[/URL], make sure you buy a DDoS protected IP. [B]Tutorial Authors:[/B] @[USER=37668]MikeOxlong[/USER] (Spock) Noman (Noz) [B]Special Thanks:[/B] Haproxy Developers Viking Community [B]What you need:[/B] - CentOS 6.x 64bit - Haproxy - Nano - DDoS Protected VPS - PuTTY (Windows Users, for Mac and Linux (*nix systems) Users go into Console and type in SSH and root@ip) [B]Notice for Beginners:[/B] Make sure you type all this in the SSH Console! How to do it: [B]1) Install Nano[/B] [CODE] yum install nano [/CODE] If it asks for anything, say yes! (Y) [B]2) Install Haproxy[/B] [CODE] yum install haproxy [/CODE] Again, if it asks for anything, say yes! (Y) [B]3) Configure Haproxy[/B] First of all, you will need to make sure that the file is on your server, type into the SSH Console Excluding SQL Query. [CODE] nano /etc/haproxy/haproxy.cfg [/CODE] Delete what ever is in there (clear it all) and replace it with this code (replacing the bits in red) [CODE] global daemon log /dev/log local4 maxconn 400000 ulimit-n 810000 defaults log global contimeout 4000 clitimeout 42000 srvtimeout 43000 listen proxy1 ddos-protected-vps-ip:port-you-wish-to-use mode tcp balance leastconn server proxy1_1 target-ip:target port [/CODE] [I][B]To copy the config above just select the text then CTRL+C and then right click in the SSH Console (PuTTY only) [/B][/I] Make sure you save the file once you have edited it! [B]4) Start Haproxy[/B] Type into your SSH Console [CODE] service start haproxy [/CODE] [B]5) Editing database (Phoenix)[/B] Edit these tables in your database only for Phoenix, Butterfly and R63B will not need database alterations. Run the MySQL Query below: [CODE] UPDATE server_settings SET enable_securesessions = '0'; UPDATE server_settings SET enable_antiddos = '1'; UPDATE server_settings SET ip_lastforbans = '1'; [/CODE] You should be set, if you have any problems, go back through the steps before contacting us! [B]If you have any questions, or need any support. Please do not hesitate to PM Me or PM @[USER=37668]MikeOxlong[/USER] or Add [B][COLOR=#ff0000]internetserviceprovidings[/COLOR][/B] or [B][COLOR=#ff0000]nozonskype[/COLOR][/B] to your Skype list and we will be happy to help![/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Guide] DDoS TCP Proxy Tutorial (Linux VPS)
Top