ifconfig eth1:1 192.168.11.254 netmask 255.255.255.0 ---内网ip
iptables -F
iptables -F -t nat
iptables -P FORWARD DROP
iptables -A FORWARD -s 192.168.11.0/24 -j ACCEPT
iptables -A FORWARD -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.11.0/24 -j SNAT --to 外网接口ip
阅读(1529) | 评论(0) | 转发(0) |