• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

DDoS TCP proxy set-up

YOLO <3
Joined
Jul 6, 2013
Messages
542
Reaction score
31
I'm now doing this: http://forum.ragezone.com/f335/tut-ddos-tcp-proxy-tutorial-959382/

But the last step doesn't work, the proxy won't start. These errors are the ones I get:

a44b0e04dd6e3520a5c81a53c5b06381 - DDoS TCP proxy set-up - RaGEZONE Forums


(First error is in dutch; says file or map doesn't exist)
 
Last edited:
YOLO <3
Joined
Jul 6, 2013
Messages
542
Reaction score
31
Sorry I meant this, Yes i did that they asked once for Y/N and I said Yes.
yum install haproxy
 
Upvote 0
Junior Spellweaver
Joined
Jun 8, 2014
Messages
117
Reaction score
19
The old tutorial thread is useless, haproxy has been updated.

The configuration is not going to work, this time you have do it yourself. Write a damn configuration script.
 
Upvote 0
Newbie Spellweaver
Joined
Oct 21, 2012
Messages
40
Reaction score
14
I'm now doing this: http://forum.ragezone.com/f335/tut-ddos-tcp-proxy-tutorial-959382/

But the last step doesn't work, the proxy won't start. These errors are the ones I get:

a44b0e04dd6e3520a5c81a53c5b06381 - DDoS TCP proxy set-up - RaGEZONE Forums


(First error is in dutch; says file or map doesn't exist)

Install the latest version of HAProxy (1.6.3)
This config should work
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
Then try starting Haproxy
PHP:
service haproxy start
 
Last edited:
Upvote 0
YOLO <3
Joined
Jul 6, 2013
Messages
542
Reaction score
31
Install the latest version of HAProxy (1.6.3)
This config should work
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
Then try starting Haproxy
PHP:
service haproxy start
Can you explain me how I can install the latest version of haproxy? Install the latest version of HAProxy (1.6.3)

What is the command in putty? Or is it again yum install haproxy?
 
Last edited:
Upvote 0
Unknown Place
Joined
Mar 7, 2013
Messages
580
Reaction score
87
Can you explain me how I can install the latest version of haproxy? Install the latest version of HAProxy (1.6.3)

What is the command in putty?

It would be better if you could learn the basics of linux first, because the way it is, you'll get stuck at every simple issue you face.
 
Upvote 0
Newbie Spellweaver
Joined
Oct 21, 2012
Messages
40
Reaction score
14
Still searching.

Download the latest source version of haproxy.
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

Edit the config file then save 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
Then run this.
PHP:
service haproxy start
chkconfig haproxy on
 
Upvote 0
Unknown Place
Joined
Mar 7, 2013
Messages
580
Reaction score
87
@Hayd3n this is a great hand. But you've just killed his learning curve, because if he had learned linux itself, he wouldn't need that tutorial. :p
 
Upvote 0
Newbie Spellweaver
Joined
Jul 17, 2012
Messages
52
Reaction score
30
Download the latest source version of haproxy.
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

Edit the config file then save 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
Then run this.
PHP:
service haproxy start
chkconfig haproxy on

or update source list
apt-get update
apt-get install haproxy
nano/etc/haproxy/haproxy.cfg
Put your configuration
/etc/init.d/haproxy restart :)
 
Upvote 0
Back
Top