coffee_cn

博客园 首页 新随笔 联系 订阅 管理

7001 端口转发到 192.168.168.132:8089


# iptables -t nat -I PREROUTING -p tcp --dport 7001 -j DNAT --to 192.168.168.132:8089
# iptables -t nat -I POSTROUTING -p tcp -d 192.168.168.132 --dport 8089 -j MASQUERADE
# /etc/rc.d/init.d/iptables save
# /etc/rc.d/init.d/iptables restart
# echo 1 > /proc/sys/net/ipv4/ip_forward

[参考]
http://www.wangjia.net/bo-blog/how-to-make-port-forward-by-iptables/

posted on 2013-03-08 13:52  coffee  阅读(287)  评论(0编辑  收藏  举报