LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-19-2004, 10:00 PM   #1
simke
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Fedora Core 15, Open Suse 11.4, Ubuntu 11.04, Knoppix 5.1.1, Debian 6.0
Posts: 42

Rep: Reputation: 15
Question FTP Connection error


G'day. I tried to connect to my Web Server(remote) using ftp but received the following error messages:

LOCAL -> Connecting to (sinaran.net*****.com).
LOCAL -> Connected to (sinaran.net*****.com) -> IP: 204.92.xxx.xxx PORT: 21.
LOCAL -> Socket connected waiting for login sequence.
REMOTE -> Ftp server ready.
COMMAND -> USER xxxxxxx
REMOTE -> User xxxxxxx okay, need password.
COMMAND -> PASS **********
REMOTE -> You are user #17 of 350 simultaneous users allowed.
REMOTE ->
REMOTE -> Restricted user logged in.
COMMAND -> SYST
REMOTE -> UNIX Type: L8
COMMAND -> REST 100
REMOTE -> Will attempt to restart at position 100.
COMMAND -> REST 0
REMOTE -> Will attempt to restart at position 0.
COMMAND -> PWD
REMOTE -> "/" is cwd.
COMMAND -> TYPE A
REMOTE -> Type okay.
COMMAND -> PORT 192,168,xxx,xxx,4,176
REMOTE -> PORT command successful.
LOCAL -> Opening data connection IP: 192.168.xxx.xxx PORT: 1200.
COMMAND -> LIST -a
ERROR -> Cannot connect to 218.208.xxx.xxx:50243 - Connection refused.
ERROR -> Connection closed.

Where 218.208.xxx.xxx is my PPPoE IP Address. My Internet gateway server is RedHat 9 while the client is Win98 PC. If I connect directly from the server(RedHat), there is no problem.

Thank you in advance for your help.

Regards,
Sim.
 
Old 07-19-2004, 11:40 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
could be your firewall is not allowing passive ftp. Upper ports need to be open to allow passive-ftp-data.
 
Old 07-20-2004, 12:49 AM   #3
simke
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Fedora Core 15, Open Suse 11.4, Ubuntu 11.04, Knoppix 5.1.1, Debian 6.0
Posts: 42

Original Poster
Rep: Reputation: 15
Thank you for your advice, Ppuru. How do I set the iptables to allow passive ftp in my case?
How do I open up upper ports to allow passive-ftp-data?
Thank you once again.
 
Old 07-20-2004, 01:47 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Actually there is no such thing as passive-ftp-data. Non-passive ftp connections use 2 ports to connect.
ftp - port 21 to connect and authenticate and ftp-data - port 20 to upload/download data.

Passive ftp too uses 2 channels - ftp - port 21 to negotiate the connection and upper ports 1024 or above for exchanging data.

If you have MASQERADING already in place, you may must need to load the ip_conntrack _ftp module using either modprobe or insmod on the RH9 gateway.

Last edited by ppuru; 07-20-2004 at 01:50 AM.
 
Old 07-20-2004, 10:23 PM   #5
simke
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Fedora Core 15, Open Suse 11.4, Ubuntu 11.04, Knoppix 5.1.1, Debian 6.0
Posts: 42

Original Poster
Rep: Reputation: 15
G'day. What I noticed was that when I used my Gateway Server (RedHat 9) to ftp, it connected at port 219.95.xxx.xxx:30xxx when I issued ls command & the connection was OK. Whereas, ftp with my Win98 client, it connected at port 219.95.xxx.xxx:50xxx & when I issued ls command, it said connection refused. Any idea?
Thanks.

Regards,
Sim.
 
Old 07-20-2004, 11:02 PM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Win98 ftp client does not support PASV ftp mode. I am not sure whether IE on Win98 supports Passive FTP ... you may need to set it in the Advanced Options.
 
Old 07-20-2004, 11:56 PM   #7
simke
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Fedora Core 15, Open Suse 11.4, Ubuntu 11.04, Knoppix 5.1.1, Debian 6.0
Posts: 42

Original Poster
Rep: Reputation: 15
Smile

Thank you for your help, ppuru. You're right, it's the passive ftp support problem. I can now use IE to browse my ftp site.

Regards,
Sim.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP SERVER Client Connection on SUSE 9.2 - connection error jcarton Linux - Networking 3 03-19-2005 12:40 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 01:43 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Suse/Novell 0 03-01-2005 05:43 AM
ftp connection hariiyer Linux - Networking 1 10-25-2004 01:01 AM
FTP Connection Gerard2 Red Hat 0 09-06-2004 02:39 PM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration