- Plesk 12.5 for Linux
Unable to connect to the server via FTP in the active mode. The following error is shown:
PLESK_INFO: 425 Unable to build data connection: Connection timed out
It is possible to connect to the server via FTP locally.
It is not possible to disable the option Use passive mode at Tools & Settings > Backup Manager > FTP Storage Settings:
PLESK_ERROR: Error: Unable to access to the storage: Transport error: unable to list directory: Curl error: (30) FTP: command PORT failed: Last FTP request: PORT 172,16,185,194,169,76 Last FTP response: 500 Illegal PORT command
Make sure you have entered the correct storage settings. You can check them independently with the command:
curl -v -P - --ssl -k -u user 'ftp://example.com//user/server3//'
The TCP port 20, which is used as FTP data port, is filtered/closed by a firewall:
# nmap -Pn 203.0.113.2 -p 20
Starting Nmap 6.47 ( http://nmap.org ) at 2016-05-14 02:41 NOVT
Nmap scan report for 203.0.113.2
Host is up.
PORT STATE SERVICE
20/tcp filtered ftp-data
FTP data transfer channel cannot be established due to TCP port 20 being filtered.
Connect to the Plesk server via SSH.
Check the status of the port 20 in firewall:
# iptables -L -n | grep 20
Allow incoming connections to the port 20:
# iptables -I INPUT 1 -p tcp --dport=20 -j ACCEPT
# service iptables save
If the port 20 is still blocked, it is possible that an intermediary firewall is filtering connections to this port. Contact network administrator for further troubleshooting.