Question
How to configure ProFTPd to return proper external IP address?
Answer
Since Plesk Onyx 17.8 this is automatically enabled in ProFTPd configuration files once the Public IP address is added in Tools & Settings > IP Addresses > 192.0.2.2 > Public IP address and a Subscription is assigned to this IP address.
This can be verified with the following steps:
-
Connect to the server via SSH
-
The public IP address is added as
MasqueradeAddress
in the FTP VirtualHost section:# cat /etc/proftpd.d/50-plesk.conf
...
<VirtualHost 192.0.2.2>
MasqueradeAddress 203.0.113.2
</VirtualHost>
...