You are not logged in.

#1 2009-06-12 07:19:04

Thoht
Member
From: Sweden
Registered: 2008-02-02
Posts: 75

Can connect but not retrieve file list (VSFTPD) from within network

Hi!

I've got a D-Link DIR-100 wired router to which an Airport Express and an MSI Wind (Arch Linux server) is connected. I can connect to the Wind from outside the LAN, which includes SSH, HTTP and FTP. However, FTP won't work if I'm inside the LAN. The Wind has the IP 192.168.0.101 in the network, and I forwarded the port 22 for SSH, 80 and 443 for HTTP and 20-21 for FTP. I'm using OpenSSH, Apache, and VSFTPD.

When trying to connect with Transmit (OS X) I get this error message:

[b]Could not retrieve file listing.[/b]
Server said:
Illegal PORT command.

Error -162: PORT failed

The Transmit log looks like this:

Transmit 3.6.7 Session Transcript
LibNcFTP 3.2.1 (August 13, 2007) compiled for UNIX
Uname: Darwin|asynja.local|8.11.1|Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386|i386
220: (vsFTPd 2.1.0)
Connected to www.mydomain.se.
Cmd: USER myusername
331: Please specify the password.
Cmd: PASS xxxxxxxxxx
230: Login successful.
Cmd: TYPE A
200: Switching to ASCII mode.
Logged in to www.mydomain.se as myusername
Cmd: SYST
215: UNIX Type: L8
Cmd: PWD
257: "/home/myusername"
Cmd: PASV
227: Entering Passive Mode (192,168,0,101,227,13).
Fixing bogus PASV data address from 192.168.0.101:58125 to XX.XXX.XX.XX:58125.
Data connection timed out.
Falling back to PORT instead of PASV mode.
Cmd: PORT 192,168,0,102,204,170
500: Illegal PORT command.
Cmd: NOOP
200: NOOP ok.
Cmd: PORT 192,168,0,102,204,171
500: Illegal PORT command.

(I edited out the IP and login credentials.)

If I try to connect to 192.168.0.101 though it works like a charm. How come I can't use the same adress? I can visit the external IP/HTTP in a browser, I can connect to it through FTP, but I can't view the files?


Credit to KiwiesRuleXD @ DeviantArt for the avatar.

Offline

Board footer

Powered by FluxBB