Block Ports in ConfigServer Security & Firewall (CSF) Updated on November 19, 2021 by InMotion Hosting Contributor 0 Minutes, 51 Seconds to Read There are many security practices for your private cloud hosting. VPS users looking for enhanced security can upgrade Advanced Policy Firewall (APF) to ConfigServer Security & Firewall (CSF). Below we cover how to block VPS ports using CSF. Temporary Permanent Note: You’ll need to log into WHM as root and select ConfigServer Security & Firewall. APF users can upgrade if desired. Temporarily Block Access to a Port Under csf – ConfigServer Firewall, specify the IP address, port(s), and number of seconds, minutes, hours, or days. Press Temporary Allow/Deny. Specify Open & Closed Ports Under csf – ConfigServer Firewall, select Firewall Configuration. Add or remove ports listed in the following sections: IPv4 Port Settings – TCP_IN, TCP_OUT, UDP_IN, UDP_OUT IPv6 Port Settings – TCP6_IN, TCP6_OUT, UDP_IN, UDP_OUT Press Change at the bottom, then Restart csf+lfd. Press Return at the bottom. Further improve your VPS security by scheduling email blacklist reports and configuring cPHulk. After configuring your firewall, audit your open ports. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Resetting the cPanel Password in WHM How to Change your root Password in WHM How to Stop and Disable Firewalld Content Security Policy (CSP) Headers – Complete Reference Guide Why You Need To Keep Your Website’s PHP Version Up-to-Date Learning About Mod_security and Disabling Mod_security Close Open Ports for PCI Compliance How to Pass PCI Compliance Scans DDoS Protection Using Corero How to Open a Port in Firewalld