[Guide] DDoS TCP Proxy Tutorial (Linux VPS)

Noman

lol
Jul 17, 2011
225
166
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 , make sure you buy a DDoS protected IP.

Tutorial Authors:
@MikeOxlong (Spock)
Noman (Noz)

Special Thanks:
Haproxy Developers
Viking Community

What you need:
- 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)

Notice for Beginners: Make sure you type all this in the SSH Console!

How to do it:

1) Install Nano

Code:
yum install nano

If it asks for anything, say yes! (Y)

2) Install Haproxy
Code:
yum install haproxy

Again, if it asks for anything, say yes! (Y)

3) Configure Haproxy

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
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

To copy the config above just select the text then CTRL+C and then right click in the SSH Console (PuTTY only)

Make sure you save the file once you have edited it!

4) Start Haproxy

Type into your SSH Console
Code:
service start haproxy

5) Editing database (Phoenix)

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';

You should be set, if you have any problems, go back through the steps before contacting us!

If you have any questions, or need any support. Please do not hesitate to PM Me or PM @MikeOxlong or Add
internetserviceprovidings or nozonskype to your Skype list and we will be happy to help!
 
Last edited:

MikeOxlong

Official Viking
Sep 19, 2013
2
1
Thanks for all the support guys! You can use another system, but it's easier to use CentOS. (Debian-based systems = apt-get install nano etc.)
 

MikeOxlong

Official Viking
Sep 19, 2013
2
1
when I start the console tells me"unrecognides server)" it is normal or is there something wrong
@Noman
Try "service start haproxy"

This tutorial was built for older versions of software so some of it may be innacurate.

A very late reply, anyways I personally use IPTables to protect me and CSF.
This can help, however if the network port is flooded this wouldn't make a difference.

cani host more than one ip for habproxy
Yes, just change them in the configuration.
 

Users who are viewing this thread

Top