ITeye博客

iptables禁止ip

muyu · 2011-02-13 21:20 · linux · 操作系统 · J# · Linux · Markdown

屏蔽单个IP:

iptables -I INPUT -s 124.115.0.199 -j DROP

 

设置完成,保存重启服务:

/etc/rc.d/init.d/iptables save
service iptables restart

 

参考文章:

http://codante.org/linux-iptables-ip-blockade

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。