How to allow certain IP for services in CSF

Add the following line in your /etc/csf/csf.allow

tcp|in|d=3306|s=192.168.1.1
tcp|out|d=3306|d=192.168.1.3

Restart csf with : csf -r

This will allow incoming/outgoing connections to port 3306

4 thoughts on “How to allow certain IP for services in CSF

  1. Hi Renjith,
    What about if i want to allow all IP address because if i install CSF on my server No one can access until i white list their IP address Please help about this issue?

    Thank you
    Abdirizak

    • Hi,

      If you install CSF, by default it doesn’t restrict nothing, until you have configured the firewall properly. For securing the sever you need to restrict the SSH, otherwise the hackers will always trying make an access on the sever via default port.

Leave a comment