LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2004, 02:09 PM   #1
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
LAN ftp server stalls after login


I have tried both ncftpd and vsftpd and opened up port 21 in iptables on the machine. I can easily login from another machine on my network but issuing the 'ls' cmd stalls the system. And, yes I HAVE tried both passive and non-passive modes with both daemons. What is the problem? I am thinking it might actually be a firewall problem. I will test that now.
 
Old 11-30-2004, 01:03 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It won't be a firewall if it allows you access.. it would be a problem with the ftp daemons when issuing an ls command after connecting. And I'm 99.999999% positive the problem at hand is not your firewall.

Last edited by trickykid; 12-01-2004 at 04:56 PM.
 
Old 12-01-2004, 06:50 AM   #3
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
I had to open up port src port 20 on my client machine. Now it works, thanks.
 
Old 12-01-2004, 10:48 AM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
the nornal way is to load the ftp connection ftacking kernel module, and add a rule to the firewall to allow Established and Related traffic...
this is DEFINATLY a firewall problem.... im 100.000 % certain...

FTP only uses port 21 for commands... it uses a different port for data (data like output from the ls command, and get / put commands)

their are 2 types or FTP, Passive and Active... by opening port 20, you will enable one type of FTP, but not the other (one type uses port 20, the other uses a random high port)... to guarantee all ftp clients will work, use the ftp tracking method i mentioned above.

P.S. Take that Trickykid ! lol..

Last edited by qwijibow; 12-01-2004 at 10:50 AM.
 
Old 12-01-2004, 04:56 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by qwijibow
the nornal way is to load the ftp connection ftacking kernel module, and add a rule to the firewall to allow Established and Related traffic...
this is DEFINATLY a firewall problem.... im 100.000 % certain...

FTP only uses port 21 for commands... it uses a different port for data (data like output from the ls command, and get / put commands)

their are 2 types or FTP, Passive and Active... by opening port 20, you will enable one type of FTP, but not the other (one type uses port 20, the other uses a random high port)... to guarantee all ftp clients will work, use the ftp tracking method i mentioned above.

P.S. Take that Trickykid ! lol..
What's that suppose to mean? I never said it was a problem on the server side as its not nor ever was, the firewall on the server is not at fault in his case, he made no mentioning of having port 20 or any firewall on his client side blocked.

And you should learn to spell, its there not their!!!!!

Last edited by trickykid; 12-01-2004 at 04:58 PM.
 
Old 12-01-2004, 05:41 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
There and Their.... this is what we call nit picking...
if were gonna start a nit picking contest, lets do it right.

this is how to nit pick..
you said.
Quote:
I never said it was a problem on the server side
but there it is...
Quote:
It won't be a firewall if it allows you access.. it would be a problem with the ftp daemons
an FTP daemon is a program running server side...
no it wasnt a problem server side... but yes you DID say that the problem was server side....

score 1 me.

and
Quote:
And I'm 99.999999% positive the problem at hand is not your firewall.
both firewalls belonged to him, therefore they are BOTH, HIS firewall's. and his client firewall was at fault.

score 2 to me...

now THAT is how to properly nitpick..
and contradicting yourself / backtracking after you are clearly wrong is far worse than mixing up there and their.



Okay.. i know being annoying... but that "take that Trickykid. lol.." was a joke... you had to start the nit picking....

so once again...... :smug look: :sticking tongue out: ha !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running FTP server on a LAN for folks outside of the LAN johnMG Linux - Networking 4 12-23-2006 04:10 PM
Cant connect to my webserver and ftp server from outside LAN akudewan Linux - Networking 3 05-15-2005 02:00 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
Port forward ftp to windoz server (lan) dulaus Linux - Networking 6 06-11-2003 03:08 PM
FTP server on LAN dakalro Linux - Networking 1 11-14-2002 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration