LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: iptables forwarding

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: iptables forwarding
From: Rutger van Oosten <r.v.oosten@xxxxxxxxxxx>
Date: Thu, 13 Feb 2003 14:13:19 +0100
FYI: Someone sent me part of his configuration off-list and I'm going to try that out. I'll report back on-list when i figure it out :-)
-----Original Message-----
From: Rutger van Oosten [mailto:r.v.oosten@xxxxxxxxxxx]
Sent: Thursday, 13 February 2003 11:01
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: iptables forwarding

I have a slightly off-topic question that still may be of interest to more people on this list.
 
I am running LVS/NAT with one director and multiple real servers. The director is running linux kernel 2.4.18 from kernel.org. The director is connected to the internet through eth0 (VIP) and to a dmz with the real servers through eth1 (DIP). Currently I am load-balancing ftp and http traffic, but to access a mssql server inside the dmz i have a iptables forward (iptables -t nat -A PREROUTING -i eth0 -p tcp -d $VIP --dport 1433 -j DNAT --to $SQL01:1433) which works fine.
 
My question: I want the sql server inside the dmz (let's call it SQL_DMZ) to be able to connect to another sql server on my (non-dmz) network (let's call it SQL_NETW). From the director I can ping them both. So then I add an iptables forward like this: iptables -t nat -A PREROUTING -i eth1 -p tcp -d $DIP --dport 1433 -j DNAT --to $SQL_NETW:1433    expecting connections on the sql port on the DIP interface to be routed to the SQL_NETW machine.  But this does not work.
 
Who knows what I'm doing wrong?
 
Thanks,
Rutger
<Prev in Thread] Current Thread [Next in Thread>