Introduction
You may find that iptables is filtering a port that should be open. The procedure in this article can assist you with opening the port.
Please note that cPanel Technical Support cannot modify or manage server firewalls on your behalf. It is recommended that firewall configurations be managed by a qualified systems administrator with experience in firewall management. If you do not have a system administrator, you may search for an available administrator using the resources provided in the article below:
System Administration Services
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command to add the rule to iptables.
iptables -A INPUT -p $protocol --dport $port -j ACCEPT
Please note that, in the above command, $protocol must be replaced with the protocol (tcp, udp, or icmp) and $port must be replaced with the port number to open.
Additional resources
How do I manually add an entry for iptables into my server's firewall?