31Oct
关于使用iptables封IP
No comments使用iptables做的网关已正常工作好几个月,最长的连续工作时间21天,如下图:

现在需要封IP,就往脚本里加语句
先是
iptables -t filter -A INPUT -s 192.168.0.150 -j DROP
没效果!
然后
iptables -t filter -A FORWARD -s 192.168.0.150 -j DROP
还是没效果!
再
iptables -t filter -I FORWARD -s 192.168.0.150 -j DROP
呵,整个世界都清静了。
Categories: Network, Note, Unix/Linux
Wednesday, October 31st, 2007 at 1:11 pm and is filed under Network, Note, Unix/Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.