Iptables configuration in centos allows remote MySQL access

Source: Internet
Author: User

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.