Re: The pkg_add/ftp/fetch pain



Helmut Schneider wrote:
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?!

FTP is always going to be a challenge in modern networking environments.

If you can point PKG_PATH at some other ftp server and it works, then I think this ftp server is not happy, or the firewall is contributing to the problem.

A hail-mary might be to force active mode, even though this should make no difference since pkg_add is simply invoking /usr/bin/ftp. A more verbose setting may highlight the problem, and if you really need to figure things out you may need to sniff the traffic.
.



Relevant Pages

  • [NT] GuildFTPd Remote DoS (LPT1)
    ... GuildFTPd is a small FTP server. ... 150 Opening ascii mode data connection for /lpt1. ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • Re: KunaniFTP-Server v.1.0.10 allows dictionary traversal
    ... >150 Opening ASCII mode data connection for /bin/ls. ... I think an FTP server that's told to "get" a file, ... Fax/Voice +1258-9858 | read details of WFTPD Pro for NT. ...
    (Bugtraq)
  • Re: vsftpd watch problem
    ... > Here is a pragmatic problem. ... I used vsftpd to setup a ftp server. ... Security record of PUREFTPD: ...
    (freebsd-questions)
  • RE: nix based ftp server suggestions
    ... I am playing with vsftpd right now. ... When I mean easy to manage, I need an ftp server so that some of our users ... can upload download large files to collaborate with people not in our ... by non tech users(ie marketing needs to give Graphics Co. X access to upload ...
    (Security-Basics)
  • RE: FTP server
    ... I have this problem in my vsftpd. ... > the FTP server and service so I can change the permissions of a subfolder ... > control his area of the FTP service. ... > Both accounts need full permissions. ...
    (RedHat)