From: "Matthew Mileham" Subject: IPTABLES NAT Date: Wed, 10 Sep 2003 08:06:36 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <017601c37761$b1aeecb0$798014ac@matthew> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0173_01C37772.74EFDE40" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Netfilter Mailing List This is a multi-part message in MIME format. ------=_NextPart_000_0173_01C37772.74EFDE40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=20 I wonder if any body can help me ? I've got 2 Redhat 9 Linux Servers purely running iptables and only using = the NAT function I want to load balance over two boxes, I want to send traffic out the = one box and SNAT 57.24.224.242,=20 and return traffic to return to the second box and DNAT to = 172.20.128.121=20 If I send traffic over the one box and receive on the same box it works, = but when I split the traffic it doesn't work ! the rules are as follows=20 Box1=20 iptables -t nat -A POSTROUTING -o eth1 -s 172.20.128.121 -j SNAT --to = 57.24.224.242 Box2=20 iptables -t nat -A PREROUTING -i eth1 -d 57.24.224.242 -j DNAT --to = 172.20.128.121 Thanks=20 ------=_NextPart_000_0173_01C37772.74EFDE40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
 
I wonder if any body can help me = ?
 
I've got 2 Redhat 9 Linux Servers = purely=20 running iptables and only using the NAT function
 
I want to load balance over two boxes, = I=20 want to send traffic out the one box and SNAT=20 57.24.224.242, 
and return traffic to return to = the second=20 box and DNAT to=20 172.20.128.121 
 
If I send traffic over the one box and = receive on=20 the same box it works, but when I split the traffic it doesn't work=20 !
 
the rules are as follows
 
Box1
iptables -t nat -A POSTROUTING -o eth1 = -s=20 172.20.128.121 -j SNAT --to 57.24.224.242
 
Box2
iptables -t nat -A PREROUTING -i eth1 = -d=20 57.24.224.242 -j DNAT --to 172.20.128.121
 
Thanks
 
 
 
 
------=_NextPart_000_0173_01C37772.74EFDE40--