• 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.

Question Firewall rules not working correctly

Dave Claessens

New Pleskian
Hello,

I have some problems with setting up my firewall.
Everything works, except FTP.
So I added a firewall rule (port 21) to allow FTP, but after this it still doesn't work.
It only works when I add the rule for all ports, looks like an other port is used, but I've set 21 as the FTP port in the FTP software.

It also works when I manually add the port with this command:
sudo firewall-cmd --zone=public --add-port=21/tcp --permanent
sudo firewall-cmd --zone=public --add-port=21/udp --permanent
sudo firewall-cmd --reload
But after applying the firewall rules again, the changes are reversed and it doesn't work anymore.

Does anyone have a sollution for me?
Thank you!

Plesk: Onyx v17.5.3
OS: CentOS 7.2.1511
FTP software: PhpStorm
FTP connection: FTPS on port 21
 
Back
Top