route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.5.1 dev eth1
Chain PREROUTING (policy ACCEPT 33516 packets, 3884K bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- eth1 * 192.168.172.0/24 0.0.0.0/0 tcp dpt:80 to:192.168.0.20:3128
4252 227K DNAT tcp -- eth1 * 192.168.30.0/24 0.0.0.0/0 tcp dpt:80 to:192.168.0.20:3128
4307 259K DNAT tcp -- eth1 * 192.168.254.0/24 0.0.0.0/0 tcp dpt:80 to:192.168.0.20:3128
Chain POSTROUTING (policy ACCEPT 11733 packets, 720K bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * eth0 192.168.172.0/24 0.0.0.0/0
6649 474K MASQUERADE all -- * eth0 192.168.30.0/24 0.0.0.0/0
2686 212K MASQUERADE all -- * eth0 192.168.254.0/24 0.0.0.0/0
阅读(3310) | 评论(0) | 转发(0) |