Friday, June 14, 2013

enable Mysql 3306 port for a particular IP and deny for all

f you want to disable the Mysql Access for all IPs except your ip then follow the below steps :
root@server[#] vi /etc/csf/csf.conf

Then search for the line :
# Allow incoming TCP ports
and the remove the port : 3306

and also search for the line :

# Allow outgoing TCP ports
and remove the port : 3306

Save and Quit.

then open the csf.allow file
root@server[#] vi /etc/csf/csf.allow
and add the entry as :


And then restart the CSF service
root@server[#] csf -r

No comments:

Post a Comment