linux under the mysql link is blocked by the firewall solution

  • 2020-05-13 03:41:01
  • OfStack

vi /etc/sysconfig/iptables

Add at the end

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

service iptables restart

Found out it still doesn't work.

Eventually it was found that the records were to be added in

-- A RH-Firewall-1 -- INPUT-p icmp -- icmp-type any-j ACCEPT restart OK again before this one

Related articles: