Allow Outgoing mysql Connection for Single ip in CSF

How to allow outgoing mysql on CSF

vi /etc/csf/csf.conf
add port 3306 on outgoing

Allow outgoing TCP ports
TCP_OUT = “20,21,22,25,37,43,53,80,110,113,443,995,3306″

How to allow outgoig mysql only one ip

vi /etc/csf/csf.allow
add line like:

tcp:out:d=3306:d=1.2.3.4

:: Restarting csf

/etc/init.d/csf restart

Leave a Reply

Your email address will not be published. Required fields are marked *