cloudpanel-io/cloudpanel-ce

Manual UFW Rules Deleted After CloudPanel UFW Rule Update

Closed this issue · 1 comments

CloudPanel version(s) affected

v2.4.1

Description

I've encountered an issue with the UFW (Uncomplicated Firewall) rules setup via CloudPanel. Whenever I manually add UFW rules through the command line, these rules are subsequently deleted if any UFW rule updates are made through the CloudPanel interface.

This behavior poses a challenge, especially since I need to enforce specific firewall rules, like blocking outgoing traffic on port 25, to meet our security requirements. Unfortunately, I cannot find an option within CloudPanel to add this specific rule for blocking outgoing traffic on port 25.

Could you please consider adding a feature that allows for the permanent addition of custom UFW rules through the CloudPanel interface? This would greatly help in managing firewall rules without the risk of them being overridden by CloudPanel's updates.

Thank you for considering this request. I look forward to your response.

How to reproduce

sudo ufw deny out 25

Possible Solution

No response

Additional Context

No response

Please create a feature request for it: https://feature-requests.cloudpanel.io/

As a workaround, you can develop a little script that runs as a cron job and adds specific rules if they get overwritten by CloudPanel.