• 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 ftp problem behind firewall

Maxwell Banks

New Pleskian
Hi!

I have a plesk server at centos 7 wiht local ip, because I have a FW with public ip with port forward.
All server work great, except ftp service (proftpd)

If I try access ftp from linux ftp client, the server respond ok, and I can make a dir and recieve all directory, but before to recieve the directory say:

ftp> dir
229 Entering Extended Passive Mode (|||12750|).
150 Opening ASCII mode data connection for file list

Allways from Windows and when at linux put passive command I recieve:

ftp> passive
Passive mode: off; fallback to active mode: off.
ftp> dir
200 EPRT command successful
425 Unable to build data connection: Permission denied

I fix it the problem puting a comment at line
#MasqueradeAddress XX.XX.XX.XX #Public IP
at virtual host section at file

/etc/proftpd.d/50-plesk.conf

... but these file say at header:

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

Where is the correcte place to change these configuration?

Thanks a lot!

Maxwell.
 
Hi Igor!
I read the below article, but have example to add properties adding a conf file at /etc/proftpd.d/ directory, but I don't add any property. I need remove a existen property at 50-plesk.conf

I have any way to remove the MasqueradeAddress attribute?

Thanks a lot!

Maxwell.
 
Hi Conny Tigerspice,

Do you have configured port forwarding? What port(s) are you have configured? Could you please post your FTP-client's logs?
 
Hello,

I suggest starting with documentation :)
Typically, need to configure a firewall to allow a port range for passive FTP. If you can't resolve an issue, I suggest creating a new forum thread, describe your installation (OS version, Plesk version), provide logs from FTP-client and a text of the error.
 
Thank you for the links, I'll look into them!

I don't think that it is neccessary to create a new post, because basically I have a solution. The FTP is working if I remove MasqueradeAddress from the file /etc/proftpd.d/50-plesk.conf, but as the author wrote: he did not know how to just remove one line from this file.

What I'm doing at the moment is that I created a new file /etc/proftpd.d/nomasquerade.conf and copied the contents of the other file into it without the MasqueradeAddress line. Then I changed the file /etc/proftpd.conf to not include the 50-plesk.conf any more. I'm not sure if this is how it has to be done, but it is working for now...
 
Back
Top