Plesk

How to configure ProFTPd in Plesk to return proper external IP address?

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:

  1. Connect to the server via SSH

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

Exit mobile version