Cartika

Welcome, Guest Login

Support Center

csf allow/open ports

Last Updated: Oct 27, 2015 06:18PM EDT

To open ports in CSF, you will want to edit these lines in this config file for CSF which is mostly stored in /etc/csf/csf.conf

# Allow incoming TCP ports

TCP_IN =  "20,21,22,25,26,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096"

# Allow outgoing TCP ports

TCP_OUT = "20,21,22,25,26,37,43,53,80,110,113,443,465,873,2087,2089,2703"

# Allow incoming UDP ports

UDP_IN = "20,21,53,465,6277,24441"

# Allow outgoing UDP ports

UDP_OUT = "20,21,53,113,123,465,873,6277,24441,33434:33523"

and add the port number at the end of each line. See this example below where I add port 12345 to the incoming TCP ports section:

# Allow incoming TCP ports

TCP_IN = "20,21,22,25,26,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,12345"

Once that is done, save the file and then restart the firewall:

service csf restart
and if you are still having issues with csf blocks add IPs into /etc/csf/csf.ignore
and vioila csf wont block the IPs in there no matter what!
same goes for LFD.

Contact Us

true
sales@cartika.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete