How to close firewall in Fedora

来源:互联网 发布:科讯cms函数 编辑:程序博客网 时间:2024/05/03 11:25

valid atfer restart
open: chkconfig iptables on
close: chkconfig iptables off   or  /sbin/chkconfig --level 2345 iptables off

2)  valid immediately and invalide after restart

 by service
open: service iptables start
close: service iptables stop

by iptables

check status of firewall:
/etc/init.d/iptables status

close firewall for now:
/etc/init.d/iptables stop

restart iptables:
/etc/init.d/iptables restart