1.永久有效
开启: chkconfig iptables on 关闭: chkconfig iptables off
2.即刻生效
开启: service iptables start 关闭: service iptables stop
ufw disable
ufw enable