Abstract:
By default, the iptables information filtering system is installed in centos. Currently, You need to configure the system to allow remote access to MySQL.
Related Knowledge:
Iptables Problems
1. iptables service/etc/init. d/iptables START | stop | restart |...
2. Configuration File Location/etc/sysconfig/iptables-config
3. Location of the policy file/etc/sysconfig/iptables (the default value does not exist. You can use service ipatables save to save the current policy)
4. View iptables-l (if you specify to view a rule, for example, iptables-l input is used for input)
5. Create a rule iptables... For example: (for more details, see iptables firewall configuration in rhel5.7)
6. Save the current rule service iptables save (or/etc/init. d/iptables save or iptables-save>/etc/sysconfig/iptables)
Save is to append the rule to a file, mainly with the iptables-Restore command
7. Restore policy file service iptables restore
MySQL access configuration:
Iptables-A input-p tcp-M state -- state new-m tcp -- dport 3306-J acceptservice iptables saveservice iptables restart
Related questions:
1. Configure/sbin/iptables and check their differences.
/Bin is generally executableProgramIn/sbin, most of them are system management programs and service programs.
S should be the word "system ".
Refer:
[1] iptables firewall configuration under rhel5.7 (on)
[2] fully interpreting iptables firewall scripts on your Web server
[3] centos_iptables command
[4] Linux iptables open MySQL port to allow remote access (firewall settings)
[5] service iptables save
[6] iptables-Save and iptables-Restore
For more information, see iptables firewall.