rendered paste bodyip route add default via gw1 table freeo
ip route add default via gw2 table freee
ip rule add from 192.168.0.7 table freeo
ip rule add from 192.168.0.8 table freee
ip rule add from 192.168.0.161 table freeo
ip rule add from 192.168.0.162 table freee
ip route flush cache
Chain PREROUTING (policy ACCEPT 51439 packets, 3292K bytes)
pkts bytes target prot opt in out source destination
66 3472 DNAT tcp -- freee any anywhere anywhere tcp dpt:http to:192.168.0.8:80
0 0 DNAT tcp -- freee any anywhere anywhere tcp dpt:domain to:192.168.0.8:53
21 1218 DNAT udp -- freee any anywhere anywhere udp dpt:domain to:192.168.0.8:53
54 3180 DNAT tcp -- freeo any anywhere anywhere tcp dpt:http to:192.168.0.7:80
0 0 DNAT tcp -- freeo any anywhere anywhere tcp dpt:domain to:192.168.0.7:53
8696 570K DNAT udp -- freeo any anywhere anywhere udp dpt:domain to:192.168.0.7:53
3 180 DNAT tcp -- freeo any anywhere anywhere tcp dpt:xfer to:192.168.0.7:82
3 180 DNAT tcp -- freee any anywhere anywhere tcp dpt:xfer to:192.168.0.8:82
42 2520 DNAT tcp -- freeo any anywhere anywhere tcp dpt:hosts2-ns to:192.168.0.161:80
13 780 DNAT tcp -- freee any anywhere anywhere tcp dpt:hosts2-ns to:192.168.0.162:80
Chain POSTROUTING (policy ACCEPT 6929 packets, 453K bytes)
pkts bytes target prot opt in out source destination
14823 980K MASQUERADE all -- any freee anywhere anywhere
22122 1284K MASQUERADE all -- any freeo anywhere anywhere