SELINUX=enforcing
改为
disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
然后
"
重启。
2.2.
关闭
iptables & ip6tables
[root@srcdb ~]# iptables -F
[root@srcdb ~]# ip6tables -F
[root@srcdb ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@srcdb ~]#
[root@srcdb ~]# service ip6tables save
ip6tables: Saving firewall rules to /etc/sysconfig/ip6table[ OK ]
[root@srcdb ~]#
[root@srcdb ~]# chkconfig iptables off
[root@srcdb ~]# chkconfig ip6tables off
[root@srcdb ~]#
确认输出已无任何防火墙规则
[root@srcdb ~]# iptables -xvnL
Chain INPUT (policy ACCEPT 486 packets, 62661 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 134 packets, 15944 bytes)
pkts bytes target prot opt in out source destination
[root@srcdb ~]#
[root@srcdb ~]# ip6tables -xvnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
评论