The pkg_add/ftp/fetch pain



OK, pkg_add is odd. It never worked as expected but mostly someone finds a way around.

I use an OpenBSD4.0 and vsftpd on a FreeBSD6.2. I just would like to update some packages as I recently upgraded from 3.9. Here is what I tried:

# set | grep PKG_PATH
PKG_PATH=ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386
#

# pkg_add -ui bzip2-1.0.3
Error from ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386/:
ftp: -: short write
421 Service not available, remote server has closed connection.
Temporary error, sleeping 5 seconds
^C
#

# ftp ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386/bzip2-1.0.4.tgz
[...]
local: bzip2-1.0.4.tgz remote: bzip2-1.0.4.tgz
229 Entering Extended Passive Mode (|||9479|)
150 Opening BINARY mode data connection for bzip2-1.0.4.tgz (113012 bytes).
[...]
226 File send OK.
113012 bytes received in 0.67 seconds (163.58 KB/s)
221 Goodbye.
#

Obviously communication is successful, so where is the problem?!

So what, let's use wget:
# FETCH_CMD="/usr/local/bin/wget" pkg_add -ui bzip2-1.0.3
Candidates for updating bzip2-1.0.3 ->
Looking for updates: complete
Cannot find updates for bzip2-1.0.3
Proceed? [y/N] N
#

<SIC>

Final solution: Download each single package and install locally:
# pkg_add -ri /usr/ports/packages/i386/bzip2-1.0.4.tgz
bzip2-1.0.4 (extracting): complete
bzip2-1.0.3 (deleting): complete
bzip2-1.0.4 (installing): complete
Clean shared items: complete
#

Surely, there is a firewall between both hosts, but an ftp transfer is successful!

So my question: Is that pkg_add "thing" broken by design, is it ftp which should be banned from all systems, or is it a simple PEBKAC?
Apologies, but I am really depressed.

--
Please do not feed my mailbox, Swen still does his job well

.



Relevant Pages

  • Re: ftpd security issue ?
    ... inside etc and lib dirs. ... annon ftp, I dont think the anon user would be able to create / write to ... 331 Password required for testuser. ...
    (FreeBSD-Security)
  • Re: OT ftp mget
    ... I found out that including this command in the scriptfile confuses ftp; somehow it doesn't parse the logon correctly. ... 200 PORT command successful. ... So this setup seems to work, apart from the fact that the two files seem to be unavailable. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Find the Guy...
    ... FTP is not running on that machine. ... The updates to the page/site aer done internally by replacing the ... >> look for on the logs of the IIS. ... >> Regards! ...
    (microsoft.public.security)
  • OT: one for FTP - isti
    ... A company that provides a software product to us have an FTP site that they post nightly updates to, one of our servers connects to using their username and password, this pulls down the updates then is supposed to delete the files ready for the next nights updates. ... Now they're saying that as it's from our network that it won't delete it must be something on our network stopping this. ...
    (uk.rec.motorcycles)
  • Re: ftpd security issue ?
    ... inside etc and lib dirs. ... annon ftp, I dont think the anon user would be able to create / write to ... 331 Password required for testuser. ...
    (FreeBSD-Security)