YOLO <3
- Joined
- Jul 6, 2013
- Messages
- 542
- Reaction score
- 31
The old thread: http://forum.ragezone.com/f335/tut-ddos-tcp-proxy-tutorial-959382/
As it has been closed and haproxy has been updated, it's time for a new tutorial.
You need:
- Putty
- Haproxy
- CentOS 6+
- Linux VPS (protected for example OVH)
Follow all these commands:
Copy this in the config and change it:
VPS IP must be for example your hotels VPS IP, protected IP the Linux server.
Credits to Hayd3n!
As it has been closed and haproxy has been updated, it's time for a new tutorial.
You need:
- Putty
- Haproxy
- CentOS 6+
- Linux VPS (protected for example OVH)
Follow all these commands:
PHP:
wget http://www.haproxy.org/download/1.6/src/haproxy-1.6.3.tar.gz
PHP:
tar xvzf haproxy-1.6.3.tar.gz
PHP:
cd ./haproxy-1.4.24
PHP:
make TARGET=linux2628 ARCH=native
PHP:
make install
PHP:
cp /usr/local/sbin/haproxy /usr/sbin/
PHP:
cp /root/haproxy-1.4.24/examples/haproxy.init /etc/init.d/haproxy
PHP:
chmod 755 /etc/init.d/haproxy
PHP:
useradd --system haproxy
PHP:
mkdir -p /etc/haproxy
Copy this in the config and change it:
PHP:
vi /etc/haproxy/haproxy.cfg
PHP:
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend tcp_front
bind PROTECTED_IP:PROTECTED_PORT
default_backend tcp_back
backend tcp_back
balance roundrobin
server server1 VPS_IP:VPS_PORT check
VPS IP must be for example your hotels VPS IP, protected IP the Linux server.
PHP:
service haproxy start
chkconfig haproxy on
Credits to Hayd3n!
Last edited: