Subject: pkg_add through proxy doenst work
To: None <netbsd-users@netbsd.org>
From: Tilo Stritzky <t.stritzky@teles.de>
List: netbsd-users
Date: 01/31/2007 21:52:15
Hi list,

I sit behind a http-proxy (MS). So I set the ftp_proxy and http_proxy
environment variables. Now simple ftp works fine but I cannot install any
packages directly, see the the following script(1):

admin@snmp-server(1)[~]> export PKG_PATH=ftp://ftp.de.netbsd.org/pub/pkgsrc/packages-2006Q3/NetBSD-3.0/i386/All
admin@snmp-server(2)[~]> export ftp_proxy=http://172.20.0.13:80/
admin@snmp-server(3)[~]> pkg_add pkgdiff-0.119
ftp: ftp.de.netbsd.org: No address associated with hostname
ftp: Can't connect or login to host `ftp.de.netbsd.org'
pkg_add: expect1 failed, rc=0
pkg_add: ftp_start() failed
pkg_add: no pkg found for 'pkgdiff-0.119', sorry.
pkg_add: 1 package addition failed
admin@snmp-server(4)[~]> ftp $PKG_PATH/pkgdiff-0.119.tgz
Requesting ftp://ftp.de.netbsd.org/pub/pkgsrc/packages-2006Q3/NetBSD-3.0/i386/All/pkgdiff-0.119.tgz
  (via 172.20.0.13:80)

     0       0.00 KB/s 
 10645      51.20 KB/s 
10645 bytes retrieved in 00:00 (51.02 KB/s)
admin@snmp-server(5)[~]> pkg_add ./pkgdiff-0.119.tgz
admin@snmp-server(6)[~]> pkg_info
pkg_info: disabling PKG_PATH when operating on all packages.
bash-3.1pl1nb1      The GNU Bourne Again Shell
pkgdiff-0.119       Tools to create, maintain and send back patches for pkgsrc
admin@snmp-server(7)[~]> uname -a
NetBSD snmp-server.teles.de 3.0 NetBSD 3.0 (ISWITCH-NOIPV6) #23: Fri Dec 8 11:55:07  2006 admin@COMPILE:/usr2/isdn/NetBSD-3.0/usr/src/sys/arch/i386/compile/ISWITCH-NOIPV6 i386

What am I missing here? Or is it a bug?

I also tried FTPMODE/FTPSERVER/FTPSERVERPORT and that does also not
work. From tcpdump I can see the proxy is tried but at the wrong port
(ftp, I need 80). Apparently etting FTPSERVERPORT has no effect.

Any ideas?

regards
tilo