• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Cloudflare and Firewall rules

Pascal_Netenvie

Regular Pleskian
Server operating system version
Debian 11.7
Plesk version and microupdate number
18.0.53
Hello,
As i use Cloudflare for domains i aim to autorize its IP in Fail2ban & Firewall.
So i have whitelisted Cloudflare IP in fail2ban then i try to add it in Firewall with these CLI commands :
Code:
/usr/local/psa/bin/modules/firewall/settings -e
/usr/local/psa/bin/modules/firewall/settings -c
/usr/local/psa/bin/modules/firewall/settings -s -name 'Cloudflare In' -direction input -action allow -remote-addresses "173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22"
/usr/local/psa/bin/modules/firewall/settings -a
/usr/local/psa/bin/modules/firewall/settings -c
At CLI it seems ok and it display "The firewall rules were confirmed."

But at same moment in Plesk GUI i have a message saying rulles are being applied, and after a long time an error message saying that new and previous rules can't be checked and Firewall rules have been reseted to default.
And finally when i check by CLI (or GUI) all my rules seems to be ok and applied.

What is the point ? Ok or not ?
 
Ok i made this configuration change.

At SSH modifications seems ok :
1688373432539.png

But at GUI always same problem :
1688373440045.png

There is another problem here ...
 
Back
Top