LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2003, 09:41 AM   #1
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Rep: Reputation: 15
Angry FTP issues (redhat 9.0)


ok im a happy man at the moment because i have been using linux for less than 2 days... and iv managed 2 install a fully working HTTP server (and not using the redhat 9.0 default server)

ok but now i have a problem with FTP....

im using vsftpd...

my network is setup as follows

1 belkin wireless router (the linux box is hardwired into here. the router is pluged into the broadband modem)

1 windows 2000 machine connected via a wireless adapter.

I have setup the vertual server on the router 2 forward 2 the linux box on ports 80, 20, 21, 23

now then... if i try and connect 2 the ftp from my windows machine it works fine.... But if i try and connect from an external computer i get this problem

it verifies the username and password fine.... But when i gets 2 connection 2 socket

i get a failed to establish data socket......

Any ideas on why this is? and is there anyway 2 fix it?
 
Old 06-03-2003, 09:41 PM   #2
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
When you say "external compuer", what do you mean by that?

and

Are you on a cable modem segment? Can you conect to FTP via localhost?
 
Old 06-04-2003, 05:29 AM   #3
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
external compuer = say a computer round a mates house... IE one not on my network

yea i can connect via localhost and from other computers on the network!
 
Old 06-04-2003, 05:38 AM   #4
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
What kind of internet connection do you have?? It's possible maybe your ISP is blocking ports... My ISP blocks ports like 80, 25, 110, 20, and 21 so people can't run servers without authorization... Maybe your ISP is doing something similar?
 
Old 06-04-2003, 05:48 AM   #5
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
Im using Blueyonder Broadband... but i everything else works... and as i said it connects and authenticates .... But it fails on the socket connection

Hmmmm.... this is starting 2 be a pain!
 
Old 06-04-2003, 11:04 AM   #6
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
did you try switching from passive to active transfers? Or active to passive transfers?
 
Old 06-04-2003, 11:14 AM   #7
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
from the FTP server or client?
 
Old 06-04-2003, 11:43 AM   #8
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
ok one of my friends just tryed 2 ftp using fetch and he gets the error

"illigal port command"
 
Old 06-04-2003, 12:20 PM   #9
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
i used dos 2 ftp in... and the only command that dont work is "ls" which is also the first command that most FTP programs will use... any ideas?
 
Old 06-04-2003, 04:02 PM   #10
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
try setting the client to active transfers...
 
Old 06-04-2003, 04:42 PM   #11
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
ok in passive mode i get
STATUS:> Connecting data socket...
425 Security: Bad IP connecting.
ERROR:> File error

in active mode i get

STATUS:> Retrieving directory listing...
COMMAND:> PORT 192,168,2,9,14,114
500 Illegal PORT command.
STATUS:> Error opening data socket

this is really starting 2 get on my nerves now... iv tryed everything....

i think i know what the problem is.... i need 2 forward a port 2 from my router from my linux box... but i dont know what port (iv got 21, 20 and 1023 forwarding)

Last edited by Gear_freak2000; 06-04-2003 at 04:44 PM.
 
Old 06-04-2003, 04:57 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Adding:
pasv_promiscuous=YES

to vsftpd.conf and restarting vsftpd should correct the pasive problem.
 
Old 06-04-2003, 05:07 PM   #13
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
let me point somthing out....

The FTP does work... infact it works very very well....

But only if i come in though the network.....

so if i FTP 2 192.168.2.39 << that machines ip it works

if i come in though XXX.XXX.XXX.XXX (the internet ip) i get the errors....

if i come in though the internet ip address.. i can do things like MKDIR but if i try ls i just get the errors again...
 
Old 06-04-2003, 05:12 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you get:
425 Security: Bad IP connecting.

Then try adding:
pasv_promiscuous=YES

If you have done this then please say because it is very difficult to know what you have and haven't tried.
 
Old 06-04-2003, 05:15 PM   #15
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
yea i tryed that just now... resarted the FTP server and it still didnt work...
 
  


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
FTP issues colabus Debian 0 12-12-2004 10:46 PM
FTP issues dpp777 Linux - Networking 4 07-21-2004 10:46 AM
FTP and Firewall issues plisken Linux - Software 2 03-13-2003 03:03 PM
FTP Connection Issues crowmanic Linux - Networking 1 03-06-2003 06:37 PM
ftp server issues munyard Linux - Software 1 11-07-2002 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration