之后可以使用命令清除规则
[root@desktop ~]# iptable -F //清除普通防火墙规则
[root@desktop ~]# iptable -X //清除系统自带防火墙规则
[root@desktop ~]# service iptable save //保存防火墙规则
4、清除selinux防火墙
[root@desktop ~]# sestatus
SELinux status: enforcing selinux存在,级别较高
[root@desktop ~]# vi /etc/selinux/config # This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing // 可以修改为disabled状态,选择disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
----------------------------------------------