mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
CloudPanel UI not reflecting UFW entries added from cli #223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
ufwfor firewall, so I went to CLI and whitelisted a port usingufw.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
ufwin the CLI, and check if the changes reflect inCloudPanel Web UI > Admin Area > Security > Firewall
Possible Solution
Create a function that reflects data from ufw
probably directly from
/etc/ufw/user.rulesAdditional Context