Open ports in CSF Firewall through SSH

CSF firewall is too easy to configure in both ways (through WHM and SSH).

- 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

 

  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

Increase PHP file Upload size in windows server 2008

The php.ini file is the default configuration file for running applications that require PHP. It...

Setup Basic POP3/IMAP Mail Server in Centos/RHEL

Setup Basic POP3/IMAP Mail Server in Centos/RHELSetting up a mail server can be quite...

How Do I access RDP

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, which provides a...

Update Time-Zone on OpenVZ VPS

OpenVZ will reflect the host server’s time by default, You can configure your VPS with custom...

Enable TUN/TAP in Solus VM

 TAP (as in network tap) simulates a link layer device and it operates with layer 2 packets such...