Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Configuration File Compatibility
« previous
next »
Print
Pages: [
1
]
Author
Topic: Configuration File Compatibility (Read 1211 times)
Spiky_Gladiator
Newbie
Posts: 23
Karma: 0
Configuration File Compatibility
«
on:
February 03, 2023, 09:26:40 am »
Hi,
I just want to check if you take a backup of your older version of OPNSense, is it compatible with the newer version or will there be some incompatibilies ? Would for example Firewall rules, DHCP configuration or basic settings be retained but more advanced configuration for other parts of OPNSense not properly imported ?
Does anyone know the answer to this ?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Configuration File Compatibility
«
Reply #1 on:
February 03, 2023, 11:23:48 am »
If it is a setting set with the UI, it gets saved to the appropriate place in the configuration file, that then gets saved in a backup ie. when is downloaded from the UI. Even the more advanced options.
If you however make your own changes manually to any files in the filesystem without using the recommended way of doing it (see documentation), then those are not saved.
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Configuration File Compatibility
«
Reply #2 on:
February 03, 2023, 11:40:38 am »
> without using the recommended way of doing it (see documentation)
Just to clarify: the advanced file-based overrides are never backed up and therefore stay local to the device. If you wish to retain them we recommend building a simple plugin on your end which includes all the files you have... this way you also have a version and change history of your modifications and can move this to other machines either by source code or precompiled plugin.
The reason for this is simple... the advanced configurations are often exactly how plugins work minus the convenience of having GUI settings translated into configuration files automatically. You can add a GUI for your local override plugin so the contents is saved in the config.xml and also written to the relevant system files, but we do not allow configuration blobs in the config.xml so that would also be private solution to the problem... In any case you need to install a plugin in order for it to work so you can cut the work by significant amount with static files delivered via plugin.
Cheers,
Franco
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Configuration File Compatibility
«
Reply #3 on:
February 03, 2023, 11:51:19 am »
thanks for the clarification franco.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Configuration File Compatibility