iptables的使用

(1)允许192.168.1.0/24网段的主机访问Linux系统 防火墙规则:iptables -A INPUT -s 192.168.1.0/24 -j ACCRPT
(2)拒绝来自192.168.5.8的主机访问Linux系统
防火墙规则为:iptables -A INPUT -s 192.168.5.8 -j DROP


iptables -I FORWARD -d www.sohu.com -j DROP


-D 删除某条限制




http://blog.163.com/xychenbaihu@yeah/blog/static/132229655201212705752493/

猜你喜欢

转载自cxmqq333.iteye.com/blog/2173778