Hi,
I’m running aaPanel 7.0.29 on Ubuntu 24, but this issue seems to affect all recent versions (likely for several years).
When I add an IP block via Security → Add IP Rule, I consistently get the error message:
Failed to set up rule
Despite the error, the IP appears in the list of rules inside aaPanel. However, I’m not sure if the block is actually enforced.
- Checking with
sudo ufw status and sudo iptables -L -v -n does not show the blocked IP.
- It seems aaPanel may be handling firewall rules differently (possibly storing them in a database or ipset), but the error suggests the rule may not be fully applied to the system firewall.
- Deleting an IP rule under Security also produces a similar error message.
Screenshots are attached below for reference.


