iptables 端口转发--内网实现上网

iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 118.x.x.x
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT

posted @ 2016-05-17 14:26  清风木  阅读(372)  评论(0编辑  收藏  举报