Remote machine: a VPS running Debian 10; vsftp as ftp server.
Local machine: a Fedora 30 desktop, within my home LAN. Local router: a Technicolor AGHP, on lease from my telcom provider.
I am trying to download a 1.5G remote directory (~21.000 items) by
wget -m -c -N -X -v --debug -o wgout.txt ftp://myuser:password@mydomain/html/wp/
Download starts fine, and progresses for almost 6/8 minutes, up to ~300MB, then it stalls:
250 Directory successfully changed.
done.
conaddr is: ip.ip.ip.ip
==> PASV ...
--> PASV
227 Entering Passive Mode (ip,ip,ip,ip,234,149).
trying to connect to ip.ip.ip.ip port 60053
Closed fd 4
Closed fd 3
couldn't connect to ip.ip.ip.ip port 60053: Connection timed out
Retrying.
--2020-05-30 21:59:23-- ftp://myuser:*password*@mydomain/html/wp/wp-content/uploads/sites/3/2018/03/
(try: 2) => ‘mydomain/html/wp/wp-content/uploads/sites/3/2018/03/.listing’
Found mydomain in host_name_addresses_map (0x55ccb875e0e0)
Connecting to mydomain (mydomain)|ip.ip.ip.ip|:21... Closed fd 3
failed: Connection timed out.
Releasing 0x00......0e0 (new refcount 1).
Releasing 0x00......0e0 (new refcount 0).
Deleting unused 0x000055ccb875e0e0.
Resolving mydomain (mydomain)... ip.ip.ip.ip
Caching mydomain => ip.ip.ip.ip
Connecting to mydomain (mydomain)|ip.ip.ip.ip|:21... Closed fd 3
failed: Connection timed out.
Releasing 0x00......10 (new refcount 1).
Retrying.
Afterwards, the remote ip is unreachable from any device within my LAN (either Linux, Win or Android), by any protocol (http(s), ssh, ftp), unless I reboot the router. (remote site is always reachable from outside my LAN.)
svftp.conf includes
connect_from_port_20=YES
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=65535 (edited)
I am not even sure where to locate the issue: vsftp, router, local machine.
ps. is there a way to call openssh-sftp-server, i.e. something like:
wget **sftp**://myuser:password@mydomain/html/wp/