Displaying 1 result from an estimated 1 matches for "antras".
Did you mean:
andras
2004 Feb 23
0
2 isp''s problem
...OUTING -o eth1 -j SNAT --to 10.10.xx.2
mark packets on 6667 port:
$IPTABLES -A PREROUTING -i eth0 -t mangle -p tcp --dport 6667 \
-j MARK --set-mark 1
(^^should it be eth1 or eth2?^^)
make routes (iproute):
ip route add default via 212.122.xx.254 (default route through first isp)
create table antras.out:
echo 201 antras.out >> /etc/iproute2/rt_tables
assign fwmark:
ip rule add fwmark 1 table antras.out
add rule:
ip rule add default via 10.10.xx.254 dev eth1 table antras.out
turn off rpf filter:
for i in /proc/sys/net/ipv4/conf/*/rp_filter ; do
echo 0 > $i
done
the problem is t...