分类: LINUX
2010-09-26 11:36:03
Iptables转发 |
iptables -t nat -A PREROUTING -d 211.150.96.143 -p tcp --dport 80 -j DNAT --to 192.168.191.159:80 |
iptables -t nat -A POSTROUTING -d 192.168.191.159 -p tcp -j SNAT --to 192.168.191.143 |
echo "1" > /proc/sys/net/ipv4/ip_forward |
Public nework--à(211.150.96.143:80)server1(192.168.191.143)ßà(private network)ßà( 192.168.191.159:80)server2
chinaunix网友2010-09-27 10:44:25
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com