Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
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>
...
Comments
2 comments
Hi there,
After I added Public IP address I get the following Error in filezilla:
Status: Disconnected from server
Status: Resolving address of host.abc.com
Status: Connecting to xx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xx.xx.xx.xx,157,197).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
The above example is set in 50-plesk.conf.
If I remove Public IP, it works again.
Any ideas on why it fails with Public IP set?
thanks
G
hi @Glenn,
If your server is behind NAT and the public IP is added in Tools & Settings > IP addresses in Plesk, the issue may be caused by incorrect firewall configuration on NAT (Misconfigured routing/external Firewall settings). To solve this, firewall should be configured properly by the hosting provider (server owner). Alternatively, public IP should be removed from Tools & Settings > IP Addresses menu.
Also the following article may be helpful:
https://support.plesk.com/hc/en-us/articles/213902285
Please sign in to leave a comment.