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>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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 [-- Attachment #2 --] <div dir="ltr"><div>Hello,</div><div><br></div><div>I'm away for a Christmas vacation, but I want to fetch some packages I've built on my home server.</div><div><br></div><div>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 <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=<a href="http://127.0.0.1:5000">127.0.0.1:5000</a> fetch <a href="http://192.168.1.20/FreeBSD-base/FreeBSD:14:amd64/latest/packagesite.txz">http://192.168.1.20/FreeBSD-base/FreeBSD:14:amd64/latest/packagesite.txz</a><br>packagesite.txz                     28 kB 5376 kBps   00s</div><div><br></div><div>but setting PKG_ENV in my config file for my local repository does not work.</div><div><br></div><div> pkg_env: {<br>  socks5_proxy: "<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>",<br> }</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>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPS9%2BSsUFR8ae%2Bdg0j5xY7mt-cSQWoCfP6rz4SQuCEOV9_zmfw>
