OPNsense Forum

English Forums => Documentation and Translation => Topic started by: brolf on July 21, 2020, 10:28:19 am

Title: Documentation of config.xml settings
Post by: brolf on July 21, 2020, 10:28:19 am
Is there a source of documentation regarding possible settings in /conf/config.xml?
I want to write a tool to migrate parts of a fortigate configuration into OPNsense and therefore I'm especially interested in documentation regarding firewall rules.

I found https://github.com/opnsense/core/blob/master/src/etc/config.xml.sample but there is not much documentation about firewall rules.
Title: Re: Documentation of config.xml settings
Post by: mimugmail on July 21, 2020, 10:41:01 am
Just create a bunch of rules on all interfaces (also floating) and check contents.
There is no doc of how config.xml style is generated.
Title: Re: Documentation of config.xml settings
Post by: fabian on July 21, 2020, 10:05:50 pm
Just create a floating rule and a normal rule fully and empty and then compare.

Some default values are not written to config xml but I think that does not hurt.
Title: Re: Documentation of config.xml settings
Post by: brolf on July 22, 2020, 04:53:45 pm
Thank you for the suggestions, I'm making some progress now.

edit: fixed typo