Problems with LVS+heartbeat+ldirectord+iptables w/ SNAT/DNAT

Siim Põder windo at p6drad-teel.net
Thu Feb 1 08:14:06 GMT 2007


Yo!

Ordway, Ryan wrote:
> Perhaps... would that work with SNAT? For example, if I did
> 
> iptables -A POSTROUTING -s 10.0.0.3 ! -d 10.0.0.0/24 -m conntrack
> --ctorigdst ! 192.168.1.100 -j SNAT --to-source 192.168.1.3
> 
> should that only perform the SNAT if the original destination is
> 192.168.1.100? Does the conntrack status survive when the packet goes
> off to 10.0.0.3 and comes back?

That's why I suggested it.

Your match matches anything that's coming from 10.0.0.3 and not to the
10.0.0.0/24 network that has had the first packet of the connection
being directed to anything BUT 192.168.1.100 (before any NAT).

Siim

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list