whitelist IP in csf

please white list my ip on zimbra server login

103.20.212.204:7071,43.252.91.42:7071,146.88.26.65:7071,103.20.213.138:7071
vim /etc/csf/csf.allow
tcp|in|d=7071|s=111.93.124.187
csf -a IP
Csf -a 223.26.30.82
csf -r
If csf not found whitelist in IPtables



  1. Login to your Linux machine through SSH. Open csf.conf file using any text editor.

    /etc/csf/csf.conf
  2. Add the port you wish to open and restart CSF firewall for the changes to take into effect.

    # Allow incoming TCP ports
    TCP_IN = "20,443,465,21,22,587,993,25,53,80,110,143,995"
    # Allow outgoing TCP ports
    TCP_OUT = "20,21,443,587,22,25,80,110,43,53"
    csf -r  // To restart CSF firewall


root@vm138:/etc/csf# vi csf.allow


# Note: IP addressess listed in this file will NOT be ignored by lfd, so they
# can still be blocked. If you do not want lfd to block an IP address you must
# add it to csf.ignore
49.37.66.131 # csf SSH installation/upgrade IP address - Wed Dec  7 20:45:48 2022
tcp|out|u=0 # Added by DirectAdmin - Wed Dec  7 20:45:50 2022
udp|out|u=0 # Added by DirectAdmin - Wed Dec  7 20:45:50 2022
192.227.75.135
63.141.245.10

Comments

Popular posts from this blog

how to install internet download manger in linux

premium url shortener

convert direct traffic to organic