Block Mysql port to everybody, but One IP and Localhost

Hi all,

This is my first question here and I do not know if this is the right forum at WHT or there is another one for it. Sorry if I am wrong.

Well, my question is quite simple.

I am on a host with Red Hat Enterprise 3 and Cpanel, and would like to know how is possible to block in IPChains or IPTables the follow rule ...

Deny access to everybody to port 3306 (Mysql :-) but permit access to "one" specific IP (outside of server) and of course, to localhost as well.

Thank you very much in advance.

Mapg

 

 

 

 

Top