The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 ftp broken?
Author: cbrace 
Date:   16-01-08 23:44

Hi Dan and all,

ftp seems to be broken on my v7beta4 system. I have posted queries about it in various places to no avail. I am not expecting a miracle answer here, just hoping someone can help me figure out how to fix it.

Also, I am not sure whether this is related to the problem I am having trying to download distribution sets with systinstall, hence this separate message.

Here is what happens when I try to install a package remotely with pkg_add:

$ sudo pkg_add -vr rtorrent
scheme: [ftp]
user: []
password: []
host: [ftp.freebsd.org]
port: [0]
document: [/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz]
---> ftp.freebsd.org:21
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
<<< 220 ftp.FreeBSD.org NcFTPd Server (licensed copy) ready.
>>> USER anonymous
<<< 331 Guest login ok, send your complete e-mail address as password.
>>> PASS colin@venus.lim.nl
<<< 230-You are user #181 of 1000 simultaneous users allowed.
<<< 230-
<<< 230 Logged in anonymously.
>>> PWD
<<< 257 "/" is cwd.
>>> CWD pub/FreeBSD/ports/i386/packages-7-current/Latest
<<< 250 "/pub/FreeBSD/ports/i386/packages-7-current/Latest" is new cwd.
>>> MODE S
<<< 200 Mode okay.
>>> TYPE I
<<< 200 Type okay.
binding data socket
>>> PORT 172,19,3,3,209,68
<<< 200 PORT command successful.
initiating transfer
>>> RETR rtorrent.tbz
<<< 550 Cannot connect to 78.27.XX.XXX:53572 - Unknown error: 0.
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz:
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz'
by URL
pkg_add: 1 package addition(s) failed

The package really is there; I can copy and paste the URL from the screen to grab it with wget, curl or fetch:

wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz

FWIW, I am running PF, but I am not fitering any outgoing traffic:

pass out all flags S/SA keep state

Someone suggested to me that this need env var needs to be set:

FTP_PASSIVE_MODE

but it doesn't seem to affect things.

Also, what does this mean?

550 Cannot connect to 78.27.XX.XXX:53572

That is indeed my IP number, which I have partially masked.

I would really appreciatate any suggestions or ideas...

--
Colin Brace
Amsterdam

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 ftp broken?   new
cbrace 16-01-08 23:44 
 Re: ftp broken?   new
olyander 08-09-08 20:10 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org