、 、 Free
1. Turn off the firewall of ubuntu
ufw disable
2. Turn on the firewall
ufw enable
3. Uninstall iptables
apt-get remove iptables
4. The remaining commands to close the firewall in ubuntu
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
2. centos
Open the firewall:
service iptables start
Turn off the firewall:
service iptables stop
Check firewall status:
service iptables status
Three, redhat
3.1. Permanently shut down and take effect after restart:
On:
chkconfig iptables on
closure:
chkconfig iptables off
3.2. Temporarily open, invalid after restart:
On:
service iptables start
closure:
service iptables stop