I've got a problem using vsftpd in passive mode on my server, which is behind a router.
Here's what I've done:
- forwarded the ports 8000-8010 to my server
- compiled and installed vsftpd 2.0.5
- my /etc/vsftpd.conf looks like this:
- started vsftpd manually
- connecting to my server using an ftp client. here's the log file:
[R] Connecting to 84.149.130.xxx PORT=21
[R] Connected to 84.149.130.xxx
[R] 220 (vsFTPd 2.0.5)
[R] USER anonymous
[R] 331 Please specify the password.
[R] PASS (hidden)
[R] 230 Login successful.
[R] 215 UNIX Type: L8
[R] REST STREAM
[R] 211 End
[R] CWD /
[R] 250 Directory successfully changed.
[R] 257 "/"
[R] TYPE A
[R] 200 Switching to ASCII mode.
[R] 227 Entering Passive Mode (84,149,130,xxx,234,238)
[R] Opening data connection IP: 84.149.130.xxx PORT: 60142
[R] Data Socket Error: Connection timed out
[R] List Error
As you can see, the client tries to open the data connection on port 60142 instead of using a port between 8000-8010.
Can someone please give me a hint how to get vsftpd to use the ports I've specified?