cPanel IPTables custom rules
- by James Haigh
Hi,
I'm trying to allow a host access to port 3306 by IP. I've added the rule and ran an iptables-save and also service iptables save. These commands show as "OK" with no reported errors. And this works absolutely fine.
Now, the server hasn't been restarted at all since I've been having this problem, but every day when I start developing on the server that needs mySQL access, it reports that the connection is refused. Back on the mySQL server, all I need to do is service iptables restart and everything then works as normal.
The mySQL server is a CentOS cPanel VPS running on OpenVZ.
Anyone know how I can make these rules persist? Is it something cPanel is doing overnight that is messing with my config? Thanks.