OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: TotalGriffLock on February 11, 2021, 03:34:19 PM

Title: Environment Variables
Post by: TotalGriffLock on February 11, 2021, 03:34:19 PM
Is there are 'correct' way to set environment variables in OPNSense which persist across upgrades? At the moment I am adding them to the [environment] section of /usr/local/opnsense/service/conf/configd.conf but this gets wiped out with every upgrade.

If not, once this .conf file is edited is there a way to process/apply settings added without a reboot?
Title: Re: Environment Variables
Post by: franco on February 12, 2021, 09:15:37 AM
Hi,

We never had to adjust the configd behaviour on the user side before. What kind of vars are you looking for?


Cheers,
Franco
Title: Re: Environment Variables
Post by: TotalGriffLock on February 12, 2021, 10:13:00 AM
Proxy variables. I run 7 OPNSense firewalls in an environment which is 99% isolated, the only internet access out is via an unauthenticated HTTP proxy.

Very similar situation to this person: https://forum.opnsense.org/index.php?topic=3833.0