Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2021 16:02:44 +0100
From:      Andreas Nilsson <andrnils@gmail.com>
To:        freebsd-pkg@freebsd.org
Subject:   Accessing pkg repository via proxy
Message-ID:  <CAPS9%2BSsUFR8ae%2Bdg0j5xY7mt-cSQWoCfP6rz4SQuCEOV9_zmfw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000ca98e905d44a3ba8
Content-Type: text/plain; charset="UTF-8"

Hello,

I'm away for a Christmas vacation, but I want to fetch some packages I've
built on my home server.

I've ssh access to a machine on my home network, so I'm attempting to use a
ssh as a socks5 proxy, ie I do
ssh -D5000 -n home

I can use fetch to get packagesite.txz like so:
SOCKS5_PROXY=127.0.0.1:5000 fetch
http://192.168.1.20/FreeBSD-base/FreeBSD:14:amd64/latest/packagesite.txz
packagesite.txz                                         28 kB 5376 kBps
 00s

but setting PKG_ENV in my config file for my local repository does not work.

  pkg_env: {
    socks5_proxy: "127.0.0.1:5000",
  }

does not work. Pkg just sits there and nothing happens. Is this mode of
operating not supported by pkg?

Best regards
Andreas

--000000000000ca98e905d44a3ba8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>I&#39;m away for a Ch=
ristmas vacation, but I want to fetch some packages I&#39;ve built on my ho=
me server.</div><div><br></div><div>I&#39;ve ssh access to a machine on my =
home network, so I&#39;m attempting to use a ssh as a socks5 proxy, ie I do=
 <br></div><div>ssh -D5000 -n home</div><div><br></div><div>I can use fetch=
 to get packagesite.txz like so:</div><div>SOCKS5_PROXY=3D<a href=3D"http:/=
/127.0.0.1:5000">127.0.0.1:5000</a> fetch <a href=3D"http://192.168.1.20/Fr=
eeBSD-base/FreeBSD:14:amd64/latest/packagesite.txz">http://192.168.1.20/Fre=
eBSD-base/FreeBSD:14:amd64/latest/packagesite.txz</a><br>packagesite.txz =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 28 kB 53=
76 kBps =C2=A0 =C2=A000s</div><div><br></div><div>but setting PKG_ENV in my=
 config file for my local repository does not work.</div><div><br></div><di=
v>=C2=A0 pkg_env: {<br>=C2=A0 =C2=A0 socks5_proxy: &quot;<a href=3D"http://=
127.0.0.1:5000">127.0.0.1:5000</a>&quot;,<br>=C2=A0 }</div><div><br></div><=
div>does not work. Pkg just sits there and nothing happens. Is this mode of=
 operating not supported by pkg?</div><div><br></div><div>Best regards</div=
><div>Andreas</div><div><br></div><div><br></div></div>

--000000000000ca98e905d44a3ba8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPS9%2BSsUFR8ae%2Bdg0j5xY7mt-cSQWoCfP6rz4SQuCEOV9_zmfw>