Firewall configuration doesn't match UI

Hi,

Yesterday I set up an Ubuntu 22.04 VM on Azure and installed the latest CyberPanel 2.3 Build 5 from script. I did not install the PureFTPd server.

I have notes from a previous install that I need to go to https://:8090/firewall/ to open port 7080. When I check the list of ports on the Firewall page, I confirm that the firewall is ON and 7080 is not open by default. However I can access OpenLiteSpeed admin on 7080 without issues, even though the port is supposedly closed. I was worried that the firewall is not working at all.

Now the forum suggested this six-year-old bug report:

After comparing the list of rules in the UI with the list from “sudo firewall-cmd --list all”, I see that the firewall allows port 7080 although it is not shown in the UI, and the firewall does NOT allow port 21 even though it is shown in the UI. So even after a default install, the UI is incorrect.

Please, update the firewall UI to always reflect the state of the server.