LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 784|回复: 1

IPTABLES 限制个别IP上网的问题

[复制链接]
发表于 2005-1-24 13:32:08 | 显示全部楼层 |阅读模式
我的脚本是~
/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呀~??
 楼主| 发表于 2005-1-24 16:40:04 | 显示全部楼层
拜读
iptables-1.1.9指南
http://www.linuxsir.cn/bbs/showthr...&threadid=80653

后已经解决~哈哈,~谢谢~大熊宝宝 的资料哦~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表