- Login to your Linux machine through SSH. Open csf.conf file using any text editor.
/etc/csf/csf.conf
- 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