Displaying 1 result from an estimated 1 matches for "ti_ip".
Did you mean:
t_ip
2007 Feb 16
0
problem with two default routes
...nes. Ok, I read the LARTC howto and set up two routing tables and
the correct balancing default gw. It works fine for connections
originating locally on the gw machine. Then I added two iptables rules
on the nat table:
iptables -t nat -A POSTROUTING -s 192.168.4.0/24 -o $TI_IF -j SNAT
--to-source $TI_IP
iptables -t nat -A POSTROUTING -s 192.168.4.0/24 -o $MC_IF -j SNAT
--to-source $MC_IP
ok, now all local ip can go to the internet but all connections go to
the second route specified in the default, whatever it is.
Here''s the default (as found on the howto):
ip route add default scope g...