![]() |
lvs-users
|
| To: | "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | RE: iptables forwarding |
| From: | Rutger van Oosten <r.v.oosten@xxxxxxxxxxx> |
| Date: | Fri, 14 Feb 2003 10:32:21 +0100 |
|
Ok..
Thanks to Malcolm i figured it out. All it needed was a POSTROUTING iptables
rule to change the source address of the packets so that the sql server that's
not in the "real-server network" knows where to return the packets too. Like
this:
#
Forward all ms-sql connections coming from real servers to DIP to SQL02 on
trusted network
iptables -t nat -A PREROUTING -p tcp -d $DIP -i eth1 --dport $SQL -j DNAT --to-destination $SQL02:$SQL iptables -t nat -A POSTROUTING -p tcp -d $SQL02 -o eth0 --dport $SQL -j SNAT --to-source $VIP I
also found this website helpful: http://iptables-tutorial.frozentux.net/
Rutger
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Large HTTP Uploads timeout, Sébastien Bonnet |
|---|---|
| Next by Date: | [ANNOUNCE] ktcpvs 0.0.10, Wensong Zhang |
| Previous by Thread: | RE: iptables forwarding, Rutger van Oosten |
| Next by Thread: | Re: lvsgsp and Piranha/LVS and seperate MRTG box, Alexandre Cassen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |