Problems using Pure-FTPd server...
Here's my setup-
Windows XP
Connected to router
IP via static DHCP (192.168.0.100)
LFS-4.1 linux FTP server
running Pure-FTPd 1.0.14
server starts on system startup
IP is static (192.168.0.254)
this machine on router's DMZ
command used to start PureFTPd-
/usr/sbin/pure-ftpd -B -E -u 500 -l unix -A -p 60000:61000 -P mikeville.us -S0.0.0.0,21
The problem occurs when I access the server from the internet through my domain name.
The problems occur when I try to do a listing of stuff in the current directory. These problems only happen when trying to connect through the domain name. If I connect through local IP, everything works fine.
If I use a Windows client to connect to the domain name (AceFTP Freeware 3) I can connect no problem. It uses PASV and uses a port in the specified range. If I try to connect from the same machine but with XP's command line ftp, it tries to do a PORT command and stalls (I never let it give a message, but I know it won't work because it gives a local ip instead of my cable modem's). If I use ncftp on the server itself, and connect to itself, it gives a correct ip (my cable modem's), a correct port, but I get 2 connection refused messages.
I have talked with my cable internet provider (Astound in St Cloud MN) and they say they don't block any ports so that's not my problem.
I guess I have 2 questions-
1. Why does the Windows client connect correctly using PASV but ncftp on linux doesn't?
2. How do I make the server give my cable modem's ip for clients that want to use the PORT command?
Thanks all ahead of time.
Mike
|