iptables -t nat -L POSTROUTING
[root@mailgateway etc]# iptables -t nat -L POSTROUTING
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 192.168.0.0/24 anywhere to:218.247.50.18
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -I FORWARD -s 192.168.0.0/24 -p tcp --dport 21 -j DROP
iptables -t filter -L FORWARD
iptables -t nat -I PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.15.200:80
iptables -t nat -I PREROUTING -i ppp0 -p tcp --dport 3389 -j DNAT --to-destination 192.168.15.200:3389
智能DNS:
iptables -t nat -I PREROUTING -i eth0 -p udp --dport 53 -j DNAT --to-destination 61.144.56.101:53
阅读(7822) | 评论(0) | 转发(0) |