:: Allow outgoing MySQL connection on CSF

27 sec read

:: What is CSF
CSF firewall commonly known as Configserver Security and Firewall has become one of the popular firewall not just because of its easy of use it also provides a cpanel interface and can be easily installed and tuned by any novice users. If you are running cpanel without firewall then CSF firewall is very much recommended, considering the security aspects of your server.
 

:: 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

 
:: Links
+ Google
+ cPanel

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

3 Replies to “:: Allow outgoing MySQL connection on CSF”

  1. Is there any way to dynamically allow the IP’s from “Remote MySQL” in cPanel through on port 3306? i.e. I don’t want to allow all IP’s on the internet through, but allow clients to add their own IP’s and have CSF automatically allow it through?

    1. i think you could do with this – as admin :
      o setup DynamicDNS on your connection
      o add the DDNS name on /etc/csf/csf.dyndns
      o allow the DDNS name on /etc/csf/csf.allow

    2. i think you could do with this – as admin :
      o setup DynamicDNS on your connection
      o add the DDNS name on /etc/csf/csf.dyndns
      o allow the DDNS name on /etc/csf/csf.allow

Leave a Reply

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