Displaying 1 result from an estimated 1 matches for "inet_ip_2".
2004 May 27
7
2 Gateways
...ients that are SNAT-ed.
I want some clients to be SNAT-ed to the first provider, while the others to
the second one.
The following lines should work:
iptables -t nat -A POSTROUTING -s 172.17.31.81 -j SNAT --to-source
$INET_IP_1
iptables -t nat -A POSTROUTING -s 172.17.31.82 -j SNAT --to-source
$INET_IP_2
But... there is a problem... I have to make the packet (after it has been
SNAT-ed)
follow the gateway corresponding to the $INET_IP_1 or to the $INET_IP_2
respectively.
In my routing table I have only one default route... corresponding to one of
the gateways.
Is it possible to have 2 default rout...