Yet another FTP problem...

5 posts / 0 new
Last post
#1 Sat, 08/18/2012 - 18:16
pawelkosi

Yet another FTP problem...

Hi

I am sure that some of you are tired from (I assume) hearing about the same stuff going wrong... Anyway... I have installed webmin and virtualmin. I needed an FTP access to my web content on the servers so I have installed the ProFTPd server module. In wiki I have read that normal UNIX users that were already created should be able to log in using FTP. It kinda worked... It logs in, then fails on MSLD and doesnt display any files. Now there is a plethora of information I can provide if you only let me know what you need to help me with this. I am newbie to Linux and web-servers (on linux - I have made a switch from Windows).

Server stands behind a router and has all the necessary ports forwarded to it. I have tried numerous configurations, new users, different permissions and I absolutely cant find anything wrong. I have spent 4 hours on this so far and went through numerous forums looking for an answer.

If there is anybody kind enough to help me I will appreciate it a lot.

Oh, I have tried anonymous and that didn't work either (unless I have set it up wrong...)

This is what total Commander FTP client logs:

Connect to: (18/08/2012 23:55:46) hostname=92.239.63.184:7575 username=pawel startdir= 220 ProFTPD 1.3.4a Server (Debian) [::ffff:192.168.0.4] USER pawel 331 Password required for pawel PASS *********** 230 User pawel logged in SYST 215 UNIX Type: L8 FEAT 211-Features: LANG en-US.UTF-8;en-US* MDTM MFMT TVFS UTF8 MFF modify;UNIX.group;UNIX.mode; MLST modify;perm;size;type;unique;UNIX.group;UNIX.mode;UNIX.owner; SITE MKDIR SITE RMDIR SITE UTIME SITE SYMLINK REST STREAM SITE COPY SIZE 211 End OPTS UTF8 ON 200 UTF8 set to on Connect ok! PWD 257 "/home/pawel" is the current directory Get directory TYPE A 200 Type set to A PORT 192,168,1,73,219,182 200 PORT command successful MLSD PORT failed, try PASV mode! PASV

HUGE Thank You in advance to anyone who will try to help me!!!

Kindest regards!

Sat, 08/18/2012 - 23:57
andreychek

Howdy,

Give the "FTP Service Isn't Working" section of this guide a shot and see if that does the trick for you:

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

Sun, 08/19/2012 - 07:34
Locutus

PORT 192,168,1,73,219,182 200 PORT command successful MLSD PORT failed, try PASV mode! PASV

I interpret this as: The client tried active mode, which failed cause it's behind a router (private IP). Then it switches to passive mode, which fails too.

To operate the FTP server behind a router/firewall in passive mode, you need a certain port range forwarded to it. I use 10021-10029 (in addition to port 21, the control port). Then you need to go to Webmin / Servers / ProFTPD / Virtual Servers - Default Server / Networking Options and enter the chosen port range in PASV Port Range.

The FTP Conntrack iptables module might work too, but I prefer the "clean" solution presented above. :)

Sun, 08/19/2012 - 15:04 (Reply to #3)
pawelkosi

Thank you for your replies! I will give it all a go and report back!

Bests

Mon, 08/20/2012 - 16:21
pawelkosi

hi Fellas,

I wont have chance to try it until tomorrow - I will let you know then. I will update this post either way.

Bests

Topic locked