I suck at ftp

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

I suck at ftp

Postposted on Mon Jan 05, 2009 8:39 pm

I fail.

I cannot "ls" or "dir" the remote directory. I get this bs error that the file does not exist. I try again and type the full path, same error. WTF? Frustration anyone?

This is ftp on FreeBSD and I am just trying to find the KDE4 package.

I am connecting to ftp2.us.freebsd.org and I manage to get as far as /pub/FreeBSD/ports/x11 and the "ls" and "dir" stop working. They worked for a bit and then just started erroring out.

OK, seriously, I have failed so many ways trying to get KDE installed on FreeBSD you would think I would have accidentally succeeded by now!
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Mon Jan 05, 2009 9:43 pm

Well, it appears that the /pub/FreeBSD/ports/x11 directory does not in fact exist. I'm not sure why it doesn't give you an error when you initially try to "cd" into it.

If you're searching for a particular file, perhaps it would be easier to use the ftp client built into your web browser, e.g. go to ftp://ftp2.us.freebsd.org/ and navigate from there.
(this space intentionally left blank)
just brew it!
Administrator
Gold subscriber
 
 
Posts: 36905
Joined: Tue Aug 20, 2002 9:51 pm
Location: Somewhere, having a beer

Re: I suck at ftp

Postposted on Mon Jan 05, 2009 10:11 pm

elinks and lynx make pretty good text-mode web browsers and FTP clients, in case you haven't got your GUI up yet.

I like lftp for dedicated ftp, fwiw.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3071
Joined: Mon Dec 29, 2003 10:55 pm
Location: Southwest Missouri, USA

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 8:02 am

JBI, I tried "FireFTP" in Firefox and keep getting errors of all sorts. I'll try another ftp client.

I would like to just use command line ftp but I am just too much the noob.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 11:54 am

My failure is now complete - here's what happens when I use FileZilla:

Code: Select all
Status:   Resolving address of ftp2.us.freebsd.org
Status:   Connecting to 130.94.149.162:21...
Status:   Connection established, waiting for welcome message...
Response:   220 Verio FreeBSD mirror
Command:   USER anonymous
Response:   230 Hi. No need to log in; I'm an anonymous ftp server.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/"
Command:   TYPE I
Response:   200 Okay, using binary.
Command:   PASV
Error:   Disconnected from server: ECONNABORTED - Connection aborted
Error:   Failed to retrieve directory listing
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 12:01 pm

It looks and sounds like the remote system is just having problems for whatever reason.

Anyway, did you make sure that your Router does not block the default FTP ports on inbound and outbound?
Ivy Bridge i5-3570K@4.0Ghz, Gigabyte Z77X-UD3H, 2x4GiB of PC-12800, EVGA 660Ti, Corsair CX-600 and Fractal Refined R4 (W). Kentsfield Q6600@3Ghz, HD 4850 2x2GiB PC2-6400, Gigabyte EP45-DS4P, OCZ Modstream 700W, and PC-7B.
Krogoth
Maximum Gerbil
Silver subscriber
 
 
Posts: 4380
Joined: Tue Apr 15, 2003 2:20 pm
Location: somewhere on Core Prime

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 12:41 pm

No, I didn't check the router. I was under the assumption that NAT would handle all that - there are no restrictions on outbound traffic so I had assumed it would allow responding inbound traffic. Maybe not?

Also, I am having this problem both at home ( a simple WRT54G-L / Tomato ) and at work ( an RV802 ).

I know for a fact that at work we can successfully connect to our own remote ftp site, although I have not tried from my own machine. I'll give that a look....

I'll also try one of the other FreeBSD mirrors.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 12:42 pm

The problem seems to be at your end; I can get into that FTP server OK.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3071
Joined: Mon Dec 29, 2003 10:55 pm
Location: Southwest Missouri, USA

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 1:00 pm

Alright. Like I said, I suck :lol:

Hey, bthylafh, could you drop down a couple levels and "ls" or "dir" and make sure that my problem with doing so is also just me sucking?
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 1:07 pm

You're router probably cannot handle passive ftp (its a bit of a pain to setup). Just use active ftp for now. Depending on how everything is set, sending the command PASV should toggle the active/passive setting.
brsett
Gerbil First Class
 
Posts: 145
Joined: Sun Feb 10, 2002 6:00 pm

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 1:39 pm

flip-mode wrote:Alright. Like I said, I suck :lol:

Hey, bthylafh, could you drop down a couple levels and "ls" or "dir" and make sure that my problem with doing so is also just me sucking?


Yeah, that works fine.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3071
Joined: Mon Dec 29, 2003 10:55 pm
Location: Southwest Missouri, USA

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 1:46 pm

brsett wrote:You're router probably cannot handle passive ftp (its a bit of a pain to setup). Just use active ftp for now. Depending on how everything is set, sending the command PASV should toggle the active/passive setting.
I think you might be right - setting it as active did better, but still timed out.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 2:18 pm

Do you have FreeBSD's firewall turned on? Perhaps it's misconfigured somehow.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3071
Joined: Mon Dec 29, 2003 10:55 pm
Location: Southwest Missouri, USA

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 3:58 pm

brsett wrote:You're router probably cannot handle passive ftp (its a bit of a pain to setup). Just use active ftp for now. Depending on how everything is set, sending the command PASV should toggle the active/passive setting.

It's usually the other way around, active is the one that doesn't work through NAT routers unless they actively understand FTP as it has the server connect back to the client.
notfred
Grand Gerbil Poohbah
 
Posts: 3647
Joined: Tue Aug 10, 2004 9:10 am
Location: Ottawa, Canada

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 6:42 pm

bthylafh wrote:Do you have FreeBSD's firewall turned on? Perhaps it's misconfigured somehow.
No. I have tried ftp on FreeBSD and I have tried two ftp clients on Windows and have utterly failed.

I am back at home now and am going to try an ftp client on Windows here at home.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Tue Jan 06, 2009 7:06 pm

OK, got it working at home using FileZilla. I had to forward some ports and have to use active mode.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Wed Jan 07, 2009 6:23 pm

That's really odd. Behind a NAT router I usually need to mess with ports only if I am actually running an FTP server. :o
Image
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
Flying Fox
Gerbil God
 
Posts: 24141
Joined: Mon May 24, 2004 1:19 am

Re: I suck at ftp

Postposted on Wed Jan 07, 2009 9:12 pm

A bit odd, but not too unusual. Some routers don't have great NAT support and can't figure out the IP that is sent to the passive ftp server needs to be rewritten to the routers IP. I've seen pretty poor NAT support in some older netgear and dlink routers. I suspect that upgrading the firmware may make a difference, but I am loathe to suggest that with older routers, as some of those firmware updates only make the situation worse for other things.

My older SMC barricade and my new linksys wrt54g2 both seem to handle everything with aplomb, but they cost more than dlink and netgear h/w. :/
brsett
Gerbil First Class
 
Posts: 145
Joined: Sun Feb 10, 2002 6:00 pm

Re: I suck at ftp

Postposted on Thu Jan 08, 2009 9:33 pm

Well, it is a WRT54GL with a fairly recent version of Tomato on it :shurg:
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH

Re: I suck at ftp

Postposted on Fri Jan 09, 2009 8:17 am

In Tomato under Advanced there should be a Conntrack / Netfilter menu that lets you enable and disable Tracking / NAT Helpers (according to the Tomato docs http://en.wikibooks.org/wiki/Tomato_Firmware#Advanced ). Double check that the FTP NAT helper is enabled.
notfred
Grand Gerbil Poohbah
 
Posts: 3647
Joined: Tue Aug 10, 2004 9:10 am
Location: Ottawa, Canada

Re: I suck at ftp

Postposted on Fri Jan 09, 2009 11:11 am

Thank you very much notfred, I will look at that.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9068
Joined: Thu May 08, 2003 11:42 am
Location: Cincinnati, OH


Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: No registered users and 4 guests