iptables -t nat -A PREROUTING -d -p tcp --dport 80 -j
DNAT --to 192.168.2.6:80
**
/sbin/iptables -t nat -A PREROUTING -p tcp -d 61.101.121.14 ---j DNAT
--to 192.168.0.1
/sbin/iptables -t nat -A POSTROUTING -p tcp -d 192.168.0.1 -s
192.168.0.0/24 -j SNAT --to 192.168.0.254
**
iptables -t nat -A PREROUTING -i eth1 -d 218.25.111.111 -p tcp –dport 80
-j DNAT –to 192.168.100.96:80
阅读(888) | 评论(0) | 转发(0) |