278 Views
A port will always be associated with an IP address and a protocol, which completes the destination or origination address of a communication session. How we can open an port in CSF firewall via CWP panel will be explained here.
STEPS:-
1. Login to the cwp panel. (root privileges).
![How To Open A Port In CSF Firewall Via CWP Panel ?](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img1.png)
2. In the left corner, under the “NAVIGATION’ expand the ‘SECURITY’ option and click on ‘CSF FIREWALL’.
![How To Open A Port In CSF Firewall Via CWP Panel ?](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img2.png)
3. In the “CSF FIREWALL” section, click on “FIREWALL CONFIGURATION” and open the configuration file.
![How To Open A Port In CSF Firewall Via CWP Panel ?](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img3.png)
4. In the config file, find and edit “ALLOW INCOMING TCP PORTS” and “ALLOW OUTGOING TCP PORTS”.
![How To Open A Port In CSF Firewall Via CWP Panel ?](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img4.png)
5. Save the file and restart the firewall service.
![How To Open A Port In CSF Firewall Via CWP Panel ?](https://www.infinitivehost.com/knowledge-base/wp-content/uploads/2023/06/port-img5.png)