cPanel IPTables custom rules
Posted
by
James Haigh
on Server Fault
See other posts from Server Fault
or by James Haigh
Published on 2011-01-03T11:25:31Z
Indexed on
2011/01/03
11:55 UTC
Read the original article
Hit count: 204
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.
© Server Fault or respective owner