Firewalld port needs to be manually added after changing the Cyberpanel to a non-standard port

I loaded a server with CyberPanel for the first time and discovered that I could change the port number inside the panel. I opt for one of the lesser-used ports from the list of Cloudflare approved HTTPS ports (e.g. 443, 2053, 2083, 2087, 2096, 8443) and changed the port inside the panel. After a reboot it seemed like I couldn’t reconnect to the control panel again and later realized I needed to manually add the port to firewalld:

firewall-cmd --permanent --add-port=PORT/tcp

So that’s the bug report: when the user changes the panel’s default port CyberPanel should go the extra step and add it to firewalld so non-technical people aren’t left with a bad taste in their mouth because it seems like their control panel disappeared on reboot.

1 Like