Hi Florian,
Am Donnerstag, den 07.08.2008, 15:51 +0200 schrieb Schmidt, Florian:
> I would like to have a solution, where they "bind" to a specific virtual
> interface so that also outgoing traffic is sent over that interface.
Source-NAT with iptables is the right way for this.
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source ${VIRTUAL_IP}
And for special cases you can use the iptables options, i.e.
iptables -t nat -A POSTROUTING -o eth0 -s ${SOURCE_IP} -d \
${DESTINATION_IP} -p tcp --dport ftp \
-j SNAT --to-source ${VIRTUAL_IP}
> Regards
> Florian
MfG, Udo
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list