CloudPanel UI not reflecting UFW entries added from cli #223

Closed
opened 2026-04-05 20:26:01 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @seakrebel on 6/14/2024

CloudPanel version(s) affected

2.4.2

Description

CloudPanel Web UI is not mirroring Firewall entries.
Documentation says CloudPanel is using ufw for firewall, so I went to CLI and whitelisted a port using ufw.
The port was successfully whitelisted, but it never shows in CloudPanel Web UI.

I would basically need to add it through Web UI in order to have it shown there, which is not how I imagined it.

How to reproduce

whitelist or block a port using ufw in the CLI, and check if the changes reflect in
CloudPanel Web UI > Admin Area > Security > Firewall

Possible Solution

Create a function that reflects data from ufw
probably directly from /etc/ufw/user.rules

Additional Context

Screenshot 2024-06-14 at 14 48 20@2x
Screenshot 2024-06-14 at 14 50 03@2x

*Originally created by @seakrebel on 6/14/2024* ### CloudPanel version(s) affected 2.4.2 ### Description CloudPanel Web UI is not mirroring Firewall entries. Documentation says CloudPanel is using `ufw` for firewall, so I went to CLI and whitelisted a port using `ufw`. The port was successfully whitelisted, but it never shows in CloudPanel Web UI. I would basically need to add it through Web UI in order to have it shown there, which is not how I imagined it. ### How to reproduce whitelist or block a port using `ufw` in the CLI, and check if the changes reflect in **CloudPanel Web UI > Admin Area > Security > Firewall** ### Possible Solution Create a function that reflects data from ufw probably directly from `/etc/ufw/user.rules` ### Additional Context ![Screenshot 2024-06-14 at 14 48 20@2x](https://github.com/cloudpanel-io/cloudpanel-ce/assets/16282150/299bde9a-ef11-4efa-9456-845374fb4416) ![Screenshot 2024-06-14 at 14 50 03@2x](https://github.com/cloudpanel-io/cloudpanel-ce/assets/16282150/057c6a51-c173-43ef-a2f6-62767e37932d)
Sign in to join this conversation.