How to allow all outgoing ports in CSF

Once on the same server running cPanel, CSF (Config Server Firewall) and LFD (Login Failure Daemon) I wanted to run the Speedtest CLI, but it did not start because it could not connect to the servers, I opened the CSF settings through the WHM panel (at the very bottom menu “ConfigServer Security & Firewall” – “Firewall Configuration”), where he discovered that only a few outgoing ports were open:


Incoming ports I highly recommend tearing off only those that are necessary, but outgoing ports are necessary for connections that the server itself installs, so you can open them all. To open all outgoing ports, I specified their entire range for TCP_OUT and UDP_OUT:


If IPv6 is used, then we also specify for TCP6_OUT and UDP6_OUT:


See also my articles:
Installing and Configuring Config Server Firewall (CSF) in Ubuntu
How to configure IPTables

Leave a comment

Leave a Reply