iptables防火墻限制 centos中有 firewalld selinux 還有 iptables
1、出入戰(zhàn)規(guī)則
2、firewall
firewall-cmd --permanent --zone=public --add-port=3306/tcp --permanent
3、iptables
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

firewall-cmd --permanent --zone=public --add-port=3306/tcp --permanent
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT