I'm out of ideas here.
I have set up wu-ftp, and it's working fine. If i SSH into the server, and :
Code:
xxx@hal:/$ ftp
ftp> open hal 31 (I have it set to port 31)
Connected to hal.home.org.
220 hal.home.org FTP server (Version wu-2.6.1(1) Sun Jul 6 19:54:49 EDT 2003) ready.
Name (hal:xxx): xxx
331 Password required for xxx.
Password:
230 User xxx logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 96
-rwxrwxrwx 1 root root 15 Jul 5 21:54 .bash_history
drwxrwxrwx 3 root root 16384 Jul 5 09:10 xxx
drwxrwxrwx 27 root root 16384 Jul 2 11:13 Linux
drwxrwxrwx 9 root root 16384 Jul 3 11:31 NetworkShare
drwxrwxrwx 2 root root 16384 Jul 3 21:53 development
drwxrwxrwx 2 root root 16384 Jul 3 21:53 intranet
226 Transfer complete.
ftp>
as you can see, that works fine.
However, if I try to FTP in the usual way (not using SSH to get onto the host first), this happens :
(Keep in mind that halcp.no-ip.org is the http for the server)
Code:
root@xxx:/# ftp
ftp> open halcp.no-ip.org 31
Connected to halcp.no-ip.org.
220 hal.home.org FTP server (Version wu-2.6.1(1) Sun Jul 6 19:54:49 EDT 2003) ready.
Name (halcp.no-ip.org:root): xxx
331 Password required for xxx.
Password:
230 User xxx logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
500 Illegal PORT Command
ftp: bind: Address already in use
ftp>
No dice. The server is behind a router (DI-604), and so is my client box here at home.I suspect something is going on with the routers, but of course I'm not sure.
I have set the FTP data port to 30. In the server router's config, I have ports 30-300 allowed in the firewall settings (I did that for passive file transfers which gFTP can use).
I have also set up a "virtual server" which is working fine, as I can login to the FTP server just fine. The router has port 31 open for the server.
As you can see above, things go wrong when I try to list the directory I'm in, because it trys to access the data port at that point.
Here's what gFTP tells me when I try it :
Code:
220 hal.home.org FTP server (Version wu-2.6.1(1) Sun Jul 6 19:54:49 EDT 2003) ready.
USER xxx
331 Password required for xxx.
PASS xxxx
230 User xxx logged in.
TYPE I
200 Type set to I.
PWD
257 "/Z" is current directory.
PASV
227 Entering Passive Mode (192,168,0,108,181,86)
Cannot create a data connection: No route to host
Disconnecting from site halcp.no-ip.org
BTW: it doesn't matter if I disable Passive Mode Transfer in gFTP. I get this error :
Code:
PORT 192,168,0,100,150,231
500 Illegal PORT Command
Any ideas ? I'm at a loss.
JC