摘要: #DNAT:58.246.38.82是公网IP,绑定在eth0上。将公网的3901端口访问映射到内网的208的80端口。iptables -t nat -A PREROUTING -d 58.246.38.82 -i eth0 -p tcp -m tcp --dport 3901 -j DNAT --to-destination 192.168.0.208:80#SNAT:将208发出的包转发至58.246.38.82iptables -t nat -A POSTROUTING -s 192.168.0.208 -o eth0 -j SNAT --to-source 58.246.38.82i 阅读全文
posted @ 2012-07-09 16:53 我的白日梦 阅读(255) 评论(0) 推荐(0) 编辑