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.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 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: []
port: [0]
document: [/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz]
looking up
connecting to
<<< 220 NcFTPd Server (licensed copy) ready.
>>> USER anonymous
<<< 331 Guest login ok, send your complete e-mail address as password.
>>> PASS
<<< 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
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
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:


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:


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

Reply To This Message
 Re: ftp broken?
Author: olyander 
Date:   08-09-08 20:10

what mode is your PF running in regarding the kernel - Generic?

is PF defined in an OPEN or CLOSED state in the Kernel? set for defaults? or whatever syntax PF uses in kernel? Something to look into.

Just a hunch, it might simply be an "add" statement for a specific port, say 21 ftp. or simply a statement that needs to be added in the pf configs.

This is why i think this is so:

Example: i use ipfw, and when i try to make install clean in say /usr/ports/whatever,
i lately have had to shut off ipfw, download it, then enable my firewall again.

so obviously i haven't figured out the add statement yet, and I just do the manual stop and start afterwards.

Good Luck, OlyAnder

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

 User Login
 User Name:
 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