Opening ports via WHM interface Firewall/CSF
1. Login to your WHM with the root password.
2. Go to the Plugins sections, click on the option ConfigServer Security & Firewall.
3. Click on the Firewall Configuration button to enter into advanced settings, in the coming window, go to the IPv4 Port Settings section.
4. Now, edit the fields Allow incoming TCP ports and Allow outgoing TCP ports.
5. Save the changes made by clicking Change.
6. Restart the firewall by clicking Restart csf+lfd.
Opening ports via SSH Firewall/CSF
1. Login to the server using the SSH.
2. Open the configuration file of the CSF as follows.
3. Add the required ports to the csf.conf file, either under Allow incoming ports or Allow outgoing ports:
4. Restart the CSF for the changes to take effect. Run the below command to restart the CSF.