Hi,
I'm trying to get passive ftp running between my local PC and a remote PC running an ftp server. My configuration is as follows:
I have two routers both running LEDE 17.01.4, one is local and the other is remote.
The remote router has a Linux PC attached with an ftp server running.
The local router also has a Linux PC attached, and lftp is installed on both local PC and local router.
The remote router is accessed via 'mydomain.com' (ip address 109.150.123.456) and the attached remote PC is on 192.168.1.12.
I have correctly forwarded ports for passive ftp on the remote router to the attached PC
I can successfully ftp from the local router to the remote PC:
lftp -e 'debug 10: ls *.jpg; bye;' -p 'control-port' -u username,pwd mydomain.com
---- Successfully logged on etc
---- Entering extended passive mode
---- Connecting data socket to (109.150.123.456) port 'data-port'
---- Files listed
---- Connection closed
When I try the same command from the attached PC to the remote PC, it fails with:
lftp -e 'debug 10: ls *.jpg; bye;' -p control-port -u username,pwd mydomain.com
---- Successfully logged on etc
---- Entering passive mode
---- Connecting data socket to (192.168.1.12) port 'data-port'
**** Data socket error (No route to host)
---- Connection closed
lftp from the local router correctly connects to the data port using the remote router's ip address, but from the local PC it attempts to connect to the data port using the remote PC's local ip address
I suspect this is something to do with address translation in the local router, but I only have a very basic understanding of this.
Can anyone help?
Thanks in advance
Kevin