How to enable cPanel / WHM /webmail after enabling firewall in Virtuozzo

By default, cPanel’s and WHM’s ports are closed for Virtuozzo. We will need to open them using SSH.

As root, run the following commands:

/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2082 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2083 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2086 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2087 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2095 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2096 -j ACCEPT

This will opens cPanel with and without SSL, and WHM with and without SSL and webmail ports.

To save the firewall changes, use the following:

/etc/rc.d/init.d/iptables save

To see the firewall rules, type

iptables –list

One Response to “How to enable cPanel / WHM /webmail after enabling firewall in Virtuozzo”

  1. 1daughter-in-lawon 12 Jan 2022 at 9:39 pm

    3maltreated…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.