Re: HAProxy and backend on the same box

2015-11-16 Thread jaleel
Hello All, After having a look in iptables, I am able to solve this issue. added following line in iptables iptables -t mangle -A OUTPUT -s 192.168.20.10 -p tcp -j DIVERT thanks much, Regards, -Abdul Jaleel On Mon, Nov 16, 2015 at 3:31 PM, jaleel wrote: > Hello All,

Re: HAProxy and backend on the same box

2015-11-16 Thread jaleel
Hello All, Need help regarding the iptables For the packet coming from network, I set the iptables as following iptables -t mangle -N DIVERT iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT iptables -t mangle -A DIVERT -j MARK --set-mark 1 iptables -t mangle -A DIVERT -j ACCEPT ip

Re: HAProxy and backend on the same box

2015-11-13 Thread jaleel
On Fri, Nov 13, 2015 at 1:12 PM, Aleksandar Lazic wrote: > Hi. > > But do you really think this is a haproxy Problem? > > Am 13-11-2015 08:38, schrieb Aleksandar Lazic: > >> Am 13-11-2015 06:14, schrieb jaleel: >> >>> It works if HAProxy and backend are in different box, but

Re: HAProxy and backend on the same box

2015-11-12 Thread Igor Cicimov
On 13/11/2015 1:04 AM, "jaleel" wrote: > > Hello, > > I am trying to setup the following for deployment > > I have 2 servers. > server1: eth0:10.200.2.211 (255.255.252.0) > eth1: 192.168.10.10 (255.255.255.0) > server2: eth0: 10.200.2.242 (255.255.252.0) >

Re: HAProxy and backend on the same box

2015-11-12 Thread Aleksandar Lazic
Am 13-11-2015 06:14, schrieb jaleel: It works if HAProxy and backend are in different box, but when both are in same box it didn't work Maybe because the iptables rule is a different from 'localhost' then from external. Please take a look at the picture

Re: HAProxy and backend on the same box

2015-11-12 Thread Aleksandar Lazic
Hi. But do you really think this is a haproxy Problem? Am 13-11-2015 08:38, schrieb Aleksandar Lazic: Am 13-11-2015 06:14, schrieb jaleel: It works if HAProxy and backend are in different box, but when both are in same box it didn't work Maybe because the iptables rule is a different from

HAProxy and backend on the same box

2015-11-12 Thread jaleel
Hello, I am trying to setup the following for deployment I have 2 servers. server1: eth0:10.200.2.211 (255.255.252.0) eth1: 192.168.10.10 (255.255.255.0) server2: eth0: 10.200.2.242 (255.255.252.0) eth1: 192.168.20.10 (255.255.255.0) VRRP between server1 and server2

Re: HAProxy and backend on the same box

2015-11-12 Thread jaleel
It works if HAProxy and backend are in different box, but when both are in same box it didn't work On Fri, Nov 13, 2015 at 1:56 AM, Igor Cicimov < ig...@encompasscorporation.com> wrote: > > On 13/11/2015 1:04 AM, "jaleel" wrote: > > > > Hello, > > > > I am trying to setup