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

Advertisements

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.

  2. How i can contact with you what is your fb ID

    Thanks
    Abdirizak

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s