|
|
我的脚本是~
/etc/rc.d/init.d/iptables stop
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.10.233/24 -o ppp0 -j MASQUERADE
执行完后,我用
iptables -t nat -L
显示
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.168.10.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
为什么还是整个网段,而不是.10.233呀~?? |
|