- Plesk for Linux
FTP directory listing is not working for the dedicated IP on Plesk server behind NAT:
CONFIG_TEXT: ftp> ls
421 Service not available, remote server has closed connection
Passive mode refused.
MasqueradeAddressconfigured on the server with several IP.
MasqueradeAddressinstruct FTP server advertise defined IP to FTP clients and they attempt to establish a connection to this address:
# grep -r Masq /etc/proftpd*
- Connect to the server via SSH;
# touch /etc/proftpd.d/49-masquerade-off.conf
- Open file in any text editor and add the following content:
CONFIG_TEXT: <VirtualHost 203.0.113.2>
Note: Replace 203.0.113.2 with the server IP address for which is required to disable the MasqueradeAddress.