iptables防火墙禁止某些IP访问ssh的方法分享
root@293621:~# iptables -vL
Chain INPUT (policy ACCEPT 36 packets, 6257 bytes)
pkts bytes target prot opt in out source destination
222 16280 ACCEPT tcp -- any any 120.0.0.0/8 anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any 183.0.0.0/8 anywhere tcp dpt:ssh
4 240 DROP tcp -- any any anywhere anywhere tcp dpt:ssh
又一次体会到iptables的威力,看来这块的内容,得找个时间好好加强下,好用啊。
本文出处参考:http://www.jbxue.com/LINUXjishu/9833.html