Nach einer tiefergehenden Recherche und unter Einbeziehung von FreeBSD im Allgemeinen konnte ich das Problem mit der OPNsense Aktualisierung über einen Proxy-Server wie folgt lösen:
Datei /usr/local/opnsense/service/conf/configd.conf.d/proxy.conf anlegen, mit folgendem Inhalt:
Am Ende der Datei /usr/local/etc/pkg.conf hinzufügen:
In die (bei mir leeren) Datei /etc/csh.cshrc eintragen:
Sofern DNS richtig konfiguriert ist, liefert ein "host proxy" den FQDN "proxy.domain.tld" sowie seine IP-Adresse.
Ich hoffe mal, dass das so auch update-sicher ist und diese Einstellungen erhalten bleiben.
Datei /usr/local/opnsense/service/conf/configd.conf.d/proxy.conf anlegen, mit folgendem Inhalt:
Code Select
[environment]
HTTP_PROXY=http://proxy:3128
HTTPS_PROXY=http://proxy:3128
http_proxy=http://proxy:3128
https_proxy=http://proxy:3128
Am Ende der Datei /usr/local/etc/pkg.conf hinzufügen:
Code Select
pkg_env : {
HTTP_PROXY: "http://proxy:3128"
HTTPS_PROXY: "http://proxy:3128"
http_proxy: "http://proxy:3128"
https_proxy: "http://proxy:3128"
}
In die (bei mir leeren) Datei /etc/csh.cshrc eintragen:
Code Select
setenv HTTP_PROXY http://proxy:3128
setenv HTTPS_PROXY http://proxy:3128
setenv http_proxy http://proxy:3128
setenv https_proxy http://proxy:3128
Sofern DNS richtig konfiguriert ist, liefert ein "host proxy" den FQDN "proxy.domain.tld" sowie seine IP-Adresse.
Ich hoffe mal, dass das so auch update-sicher ist und diese Einstellungen erhalten bleiben.