search for: myprimaryip

Displaying 1 result from an estimated 1 matches for "myprimaryip".

2006 Jul 06
2
routing ssh to secondary uplink
...add default gw 10.2.2.1 ip route add table 1 default via SECONDARYGW iptables -t mangle -A PREROUTING -p tcp --dport 22 -s 192.168.1.0/24 -j MARK --set-mark 1 iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to MYSECONDARYIP iptables -t nat -A POSTROUTING -o $EXT_NIC -s 192.168.1.0/24 -j SNAT --to MYPRIMARYIP ip rule add fwmark 1 table 1 ip route flush cache Sincerely, -- devnull@plugthebox.net <devnull@plugthebox.net>