Cant't connect to the server via LFTP

3 posts / 0 new
Last post
#1 Fri, 08/16/2013 - 11:09
Interact

Cant't connect to the server via LFTP

When I try to connect from an external server to Virtualmin server via LFT I'm "stuck" on simply LS command.

Debug output below:

---- Connecting to 69.176.xyz.71 (69.176.xyz.71) port 21 <--- 220 FTP Server ready. ---> FEAT <--- 211-Features: <--- MDTM <--- MFMT <--- LANG ko-KR;ja-JP;zh-TW;bg-BG;ru-RU;fr-FR;zh-CN;it-IT;en-US <--- TVFS <--- UTF8 <--- MFF modify;UNIX.group;UNIX.mode; <--- MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*; <--- REST STREAM <--- SIZE <--- 211 End ---> LANG <--- 200 Using default language en_US.UTF-8 ---> OPTS UTF8 ON <--- 200 UTF8 set to on ---> OPTS MLST modify;perm;size;type;UNIX.group;UNIX.mode;UNIX.owner; <--- 200 OPTS MLST modify;perm;size;type;UNIX.group;UNIX.mode;UNIX.owner; ---> USER fbcontestapp <--- 331 Password required for fbcontestapp ---> PASS XXXX <--- 230 User fbcontestapp logged in ---> PASV <--- 227 Entering Passive Mode (69,176,xyz,71,207,141). ---- Connecting data socket to (69.176.xyz.71) port 53133 `ls' at 0 [Making data connection...]

Any clue?

Thanks

Fri, 08/16/2013 - 11:39
Locutus

Most likely reason would be a firewall or router blocking / not forwarding the port that the FTP server is offering (here 53133, but they're chosen randomly each time). If you have a firewall in place, you need to open a selected port range (e.g. 10021-10029), and configure ProFTPD to use that as passive mode port range: Webmin / Servers / ProFTPD Server / Virtual Server - Default Server / Networking Options: PASV port range.

Fri, 08/16/2013 - 14:04
andreychek

Howdy,

Also, there's some thoughts on how to fix that particular problem in the section here titled "FTP Service Isn't Working":

https://www.virtualmin.com/documentation/web/faq

Topic locked