Trying to setup ftp behind linux router [setting up an ftp server] [coyote linux]

admin / May 24th, 2011/ Posted in Networking / No Comments »

Re:Errr, we're getting kind of confused here aren't we? Just read this old, but simply explained article from, of all people, Netscape, about the diff b/w passive and active. Using FTP through a firewall (passive FTP) (http://help.netscape.com/kb/consumer/19960513-36.html) Mostly because it saves me typing it all out for you and it keeps the post shorter.:)

Oh, and the DOS cli ftp client does not do passive. Most others will though, ncftp (my fav), cute, WS, bulletproof, etc., etc..


Re:<< Try setting your FTP server to use a high port, like port 5000 or so as long as it's above port 1024. Forward that one port through your linux router to whatever your internal FTP server's IP is.

If command line DOS ftp works, the other ftp clients you're using either don't support passive ftp correctly, or you have your ftp server set up oddly. Try using Bulletproof FTP (www.bpftp.com). It's been the most reliable ftp client I've used under windows when others failed to work.

Passive ftp I believe uses just the 1 port for everything whereas active (normal) ftp uses the default port for control stuff and a randomly chosen by the ftp server high numbered port for the actual data transfer.

Good luck!

Gaidin >>

Thats what I thought too, but it seems everytime I say one type of ftp is a certain way Im wrong :P

If command line works, use it. Its easier anyhow.


Re:Try setting your FTP server to use a high port, like port 5000 or so as long as it's above port 1024. Forward that one port through your linux router to whatever your internal FTP server's IP is.

If command line DOS ftp works, the other ftp clients you're using either don't support passive ftp correctly, or you have your ftp server set up oddly. Try using Bulletproof FTP (www.bpftp.com). It's been the most reliable ftp client I've used under windows when others failed to work.

Passive ftp I believe uses just the 1 port for everything whereas active (normal) ftp uses the default port for control stuff and a randomly chosen by the ftp server high numbered port for the actual data transfer.

Good luck!

Gaidin


Re:There are 2 types of FTP, passive and active. Now I always get the two mixed up. But one uses port 21 for everything and the other uses port 21 and a random high port.

Re:I've read that ftp uses 21 for connetions, and 20 for data transfer. All of the clients are set to use port 21, (no other port settings are available from what I can see) and they definatly connect to the server fine. The little disclaimer message (that I typed) even pops up. My guess is that it chokes when it opens the first ascii transfer via 'ls'. I cannot figure it out. Is it common for FTP servers to work fine behind comericial firewalls?

Re:That is indeed a port, and it's different each time? Then the client which tries to connect to your ftp server must try with different ports for some reason. Since ftp'ing from DOS works, and the ftp program connects with port 21 as default, it must probably be on the client side, not the server side.

Related posts


Tags: ,

Leave a Reply

Name required

Mail (will not be published) required

Website