linux下禁止防火墙

来源:互联网 发布:网络终端软件买卖合同 编辑:程序博客网 时间:2024/04/30 01:03

linux下禁止防火墙 :
 #service iptables stop
 #/sbin/modprobe -r iptable_filter

或者在/etc/rc.d/rc.local里写上语句:
 /sbin/iptables -F
 #/sbin/iptables -t nat -F

其中iptables有三个表: filter, NAT, mangle.
iptables (-t filter) -F就是把该filter表的规则全部清除.