Specifying external IP for passive mode makes the ftp server work wrong.
Posted: 2019-04-06 16:03
I have rent a VPS Server and installed Windows 2019 Server and FileZilla FTP Server 0.9.60 on it.
The puplic IP address is for ex. 95.95.95.95 and the internal IP is for ex. 10.10.10.10.
In the VPS config the external IP 95.95.95.95 is routed to the internal IP 10.10.10.10.
I configured passive ports 50000-50100 in FileZilla and opened this ports in Windows Firewall and the VPS Firewall config.
And i entered the external IP 95.95.95.95 in "Passive mode settings" / "Use the following IP".
When i connect to the server i get for ex.
227 Entering Passive Mode (95,95,95,95,195,86)
disconnected
on the server. The FTP client displays: Disconnected from server: ECONNABORTED - Connection aborted
When i change the setting to Default (specify no externeal IP) then it seems to work. I get for ex. this on the server:
227 Entering Passive Mode (10,10,10,10,195,86)
STOR Test.txt
150 Opening data channel for file upload to server of "/Test.txt"
226 Successfully transferred "/Test.txt"
The client displays:
227 Entering Passive Mode (95,95,95,95,195,86)
It seems to work without external IP specified for some reason idk, but i wonder whether the FTP Server really sends the correct info
"95,95,95,95,195,86" to the client or whether the client just changes "10,10,10,10,195,86" to "95,95,95,95,195,86".
I want to specify the external IP in the FTP Server settings as suggested when behind NAT but this does not work for me.
The server then seems to try to listen on external IP 95.95.95.95 which fails.
It makes no difference whether "Don't use external IP for local connections" is checked or not.
The server should listen on the internal IP 10.10.10.10 anyway and just tell the client to connect to external IP 95.95.95.95.
Maybe i don't understand something or missed something to configure. Any advice?
The puplic IP address is for ex. 95.95.95.95 and the internal IP is for ex. 10.10.10.10.
In the VPS config the external IP 95.95.95.95 is routed to the internal IP 10.10.10.10.
I configured passive ports 50000-50100 in FileZilla and opened this ports in Windows Firewall and the VPS Firewall config.
And i entered the external IP 95.95.95.95 in "Passive mode settings" / "Use the following IP".
When i connect to the server i get for ex.
227 Entering Passive Mode (95,95,95,95,195,86)
disconnected
on the server. The FTP client displays: Disconnected from server: ECONNABORTED - Connection aborted
When i change the setting to Default (specify no externeal IP) then it seems to work. I get for ex. this on the server:
227 Entering Passive Mode (10,10,10,10,195,86)
STOR Test.txt
150 Opening data channel for file upload to server of "/Test.txt"
226 Successfully transferred "/Test.txt"
The client displays:
227 Entering Passive Mode (95,95,95,95,195,86)
It seems to work without external IP specified for some reason idk, but i wonder whether the FTP Server really sends the correct info
"95,95,95,95,195,86" to the client or whether the client just changes "10,10,10,10,195,86" to "95,95,95,95,195,86".
I want to specify the external IP in the FTP Server settings as suggested when behind NAT but this does not work for me.
The server then seems to try to listen on external IP 95.95.95.95 which fails.
It makes no difference whether "Don't use external IP for local connections" is checked or not.
The server should listen on the internal IP 10.10.10.10 anyway and just tell the client to connect to external IP 95.95.95.95.
Maybe i don't understand something or missed something to configure. Any advice?