Re: FreeBSD install via Proxy?

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Tue, 28 May 2024 12:42:45 UTC
On Tue, 28 May 2024, at 12:22, Jenisch Ewald wrote:
> Hi,
>
> I've got a machine sitting in a heavily firewalled environment not 
> allowing direct internet connections, but http/https has to run via a 
> proxy. I've found ways to get normal user activity as well as git for 
> source updates run via proxy, but how about a fresh installation of 
> FreeBSD
>
> To be specific: How can I get the installer (i.e. bootonly.iso) to run 
> it's downloads via a proxy instead of trying to connect to the internet 
> dirctly?
>
> I've already tried (without success so far):
>
> o) When the installer starts going for "shell" and in the shell opening
> 	export HTTP_PROXY=<proxy:port>
> 	export http_proxy=<proxy:port>
>
> o) Doing [Alt]-[F4] after the installer starts which brings me to a 
> shell and then in that shell
> 	export HTTP_PROXY=<proxy:port>
> 	export http_proxy=<proxy:port>
> 	and leaving that console window open while switching back to the 
> installer using [Alt]-[F1] to continue installation
>
> Unfortunately neither of these work, not even a combination of them; 
> the installer always reaches out to the internet directly.

Hi Jenisch

Assuming I understood what you're trying to do, you should just be able
to switch to a shell (by any means you used  above), do the `export ...`
things, and then run `bsdinstall` from within the same shell, thus
inheriting thoes proxy settings.

It's also possible to use a larger image (memstick or disc1) which
already contains the tarballs, so there's nothing needed to fetch:

https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/14.0/

A+
Dave