Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2014 22:06:06 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   portsnap does not work without direct connection to the Internet
Message-ID:  <20140202150606.GA6810@admin.sibptus.tomsk.ru>

next in thread | raw e-mail | index | archive | help
Colleagues,

There seems to be a problem with portsnap when it has no direct
connection to the Internet. I have a box which has access to the
Internet only from one of its secondary IP addresses. What I end up
all the time with is a partial failure:

[root@fw ~] printenv | grep -i pro
[root@fw ~]
[root@fw ~] rm -rf /var/db/portsnap/ ; mkdir /var/db/portsnap/
K[root@fw ~] env FETCH_BIND_ADDRESS=217.29.84.225 portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Sun Feb	2 07:10:44 NOVT 2014:
f9cbef275fa81aa3228301bef94aa55fc6f10335a454e0100% of	69 MB  224 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Sun Feb  2 07:10:44 NOVT 2014 to Sun Feb	2 21:43:49 NOVT 2014.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files...
/usr/sbin/portsnap: cannot open 41b17186d7b48c4c840e416dced7ccee5fe20e6fd67f5bcbbbdad3373ceb6fa7.gz: No such file or directory
metadata is corrupt.
[root@fw ~]


So it does download some things but not all things.  Can it be the
case that some parts of portsnap do not use fetch(1) to download
things?

There seems to be a related problem with freebsd-update, at least it
fails when HTTP_PROXY is configured with login and password, like 
"setenv HTTP_PROXY http://user:pass@my.proxy.ru:3128".



-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140202150606.GA6810>