On Wed, 10 Jan 2007 21:05:31 -0800, bob rearranged some electrons to form:
> I have a debian system running vsftpd stand alone.
>
> My problem is that I can't accees my web server or ftp service. I had
> everything working at my old residence for about a year, but have since
> moved and now have a different ISP (I now have Cox). When I try to
> access the ftp through a command line with a remote windows machine and
> the linux machine plugged directly to the modem (i.e. no router, hub,
> etc. involved) I get:
>
> ftp 70.189.xxx.xxx
> connected to 70.189.xxx.xxx
> connection closed by remote host
>
>>From the same windows machine I can putty (ssh) and ping the linux
> machine.
>
> Also if I do use a router (with the linux ports 20,21,and 80
> forwarded), then I can get access to the web server and ftp service
> with a local machine, but still there is no remote access happening.
>
> I haven't changed any configuration files since it last worked,
> although it has been awhile since I last successfully installed all of
> the above (at my last place the linux box was running continuously for
> nearly a year and never crashed despite heavy use!)
If you're using passive mode, you need to specify the port range that
vsftpd uses, and open that port range on the WAN side of the router as
well.
in /etc/vsftpd/vsftpd.conf:
pasv_max_port=<some high port number + 50 or so>
pasv_min_port=<some high port number>
and forward the same port range on your router.
You also need to make sure your ISP is not blocking ports 20 & 21. Some do.
--
David M (dmacchiarolo)
http://home.triad.rr.com/redsled
T/S 53
sled351 Linux 2.4.18-14 has been up 32 days 4:58