LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-22-2006, 09:42 AM   #1
belliott4488
Member
 
Registered: Oct 2003
Location: Ellicott City, MD, US
Distribution: Fedora 11
Posts: 67

Rep: Reputation: 15
can't upload with ftp from FC3


Sorry, to double-post, but I thought I might be more likely to get help here than in Linux-Security, where I first posted this question.

Quote:
Originally Posted by belliott4488
I'm running Fedora Core 3, including SELinux. Today I attempted to upload some files to a web server for the first time, but I couldn't quite do it.

(Actually, my 'put' command seemed to succeed in blowing away the file I was trying to upate, since the web site I'd just agreed to try and maintain for someone stopped responding - I was updating the index.html file. I had to boot up my Win2K machine just to do the ftp.)

I can establish the connection and log on, but any command that uses the data port seems to fail. Here's a simple example session:

Code:
[bruce@localhost ~]$ ftp -d users.XXXX.net
Connected to users.XXXX.net.
220 www2.XXXX.net FTP server (Version wu-2.8.0-prerelease(1) Tue Dec 6 22:11:18 PST 2005) ready.
---> AUTH GSSAPI
500 AUTH command not supported.
---> AUTH KERBEROS_V4
500 AUTH command not supported.
KERBEROS_V4 rejected as an authentication type
Name (users.megapathdsl.net:bruce): ZZZZZZ
---> USER ZZZZZZ
331 Password required for ZZZZZZ.
Password:
---> PASS XXXX
230 User ZZZZZZ logged in.
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entering Passive Mode (XX,80,60,21,108,140)

receive aborted
waiting for remote to finish abort
ftp>
(I've x'd out the server and username.)
The session just hangs after the "Entering Passive Mode ..." message. If I wait long enough, it just times out; this time I CTRL-C'd out of it. I get the same response if I do a "put" or a "get".

I was able to ftp successfully from the same machine after I rebooted in Win2K, so I'm guessing this has something to do with the firewall on the Linux side.

What should I do?

thanks,
Bruce

Last edited by belliott4488; 01-23-2006 at 06:30 PM.
 
Old 01-23-2006, 03:24 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Did you also use the passive mode under w2k? If yes, then your firewall (and/or NAT) is causing problems.

You need to have the ftp conntrack for iptables.

And I bet XXX= mega...

Don't double post, the correct place for this thread would have been network as ftp is not linked to fedora and there is no security issue.
 
Old 01-23-2006, 07:26 AM   #3
belliott4488
Member
 
Registered: Oct 2003
Location: Ellicott City, MD, US
Distribution: Fedora 11
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000
Did you also use the passive mode under w2k? If yes, then your firewall (and/or NAT) is causing problems.

You need to have the ftp conntrack for iptables.

And I bet XXX= mega...

Don't double post, the correct place for this thread would have been network as ftp is not linked to fedora and there is no security issue.
Sorry about the incorrect posting, but I wasn't sure where to post since I wasn't sure what the problem was, e.g. if Fedora has a unique way of configuring its firewall or something.

I've found out that the server I was trying to connect to doesn't allow passive mode transfers, so I think the problem is with my firewall, i.e. if I have to use active ftp, it has to allow the remote server to connect to my data port.

Are firewall questions security-related or network-related? I'd like to carry on this thread in the appropriate forum, I'm just confused ...

And BTW ... how did you guess that domain name? Are they big in the hosting world? I'm new to all this and hadn't even heard of them before.

thanks,
Bruce
 
Old 01-23-2006, 08:29 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by belliott4488

Are firewall questions security-related or network-related? I'd like to carry on this thread in the appropriate forum, I'm just confused ...

And BTW ... how did you guess that domain name? Are they big in the hosting world? I'm new to all this and hadn't even heard of them before.

thanks,
Bruce
227 Entering Passive Mode (XX,80,60,21,108,140)

Here is the IP adress you could edit your post to remove it.

Well, for me firewall not working fall under network configuration but I'm not maintainer of the website , you can put them in one of them (not both eheh)

Anyway, you seem to know how active/passive command/data port in ftp work. If you also know how iptables works , grep google or linuxquestions for ftp conntrack, it is was you need.

Last edited by nx5000; 01-23-2006 at 08:30 AM.
 
Old 01-23-2006, 06:33 PM   #5
belliott4488
Member
 
Registered: Oct 2003
Location: Ellicott City, MD, US
Distribution: Fedora 11
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000
227 Entering Passive Mode (XX,80,60,21,108,140)

Here is the IP adress you could edit your post to remove it.

Well, for me firewall not working fall under network configuration but I'm not maintainer of the website , you can put them in one of them (not both eheh)

Anyway, you seem to know how active/passive command/data port in ftp work. If you also know how iptables works , grep google or linuxquestions for ftp conntrack, it is was you need.
duh ... yeah, IP address, huh. thanks.

And actually, my problem turned out to be good ol' user error. I has assumed that since my ftp client reported that is was entering passive mode, that it had been in active mode before that. Not so. When I explicitly disable passive mode (by typing "passive") I can connect just fine. No firewall problem.

Sorry for the wasted bandwidth ...

- Bruce
 
Old 01-25-2006, 05:48 AM   #6
daltxguy
LQ Newbie
 
Registered: Jan 2006
Location: Christchurch, New Zealand
Posts: 1

Rep: Reputation: 0
Smile

Not wasted bandwidth as I just experienced this same issue and your hint to enter passive mode was exactly what I needed. Thanks.

Steve
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't se folder after ftp upload steffa Linux - Networking 1 06-08-2005 08:40 PM
FTP upload hinetvenkat Linux - Software 3 06-02-2005 09:34 PM
Cant upload to another FTP brandog Linux - Software 1 05-03-2003 02:47 PM
Can't Upload FTP twantrd Linux - General 1 03-28-2003 09:15 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:51 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