Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
can I save Opensense configuration to text file, edit and reload it?
« previous
next »
Print
Pages: [
1
]
Author
Topic: can I save Opensense configuration to text file, edit and reload it? (Read 8500 times)
Aloist
Newbie
Posts: 23
Karma: 2
can I save Opensense configuration to text file, edit and reload it?
«
on:
November 20, 2018, 05:13:24 pm »
I am new to Opensense and am considering to set it up as Firewall using one of our spare servers.
I am familiar with iptables on Linux, and with filter rules as access lists in Cisco routers.
Up to now we used access list in Cisco routers as firewall.
There, I can save the configuration into a text file, or edit the configuration file off-line, and then
upload it to the router.
I am used to maintain firewall roules that way, and prefer that to a graphical interface.
Is this possible with Opensense, i.e. maintain configuration off-line and upload it, to replace the
existing configuration?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: can I save Opensense configuration to text file, edit and reload it?
«
Reply #1 on:
November 20, 2018, 06:27:16 pm »
Hi there,
The file is /conf/config.xml but you will lose integrity checking.
Depending on the changes, you will need to reload subsystems maybe from the GUI or shell, but there are many so we have to list the right scripts for you to use.
Cheers,
Franco
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: can I save Opensense configuration to text file, edit and reload it?
«
Reply #2 on:
November 20, 2018, 06:32:55 pm »
sure in the backup section you can download the current configuration (XML), edit it and upload it again (you need to reload all affected areas or reboot afterwards - in that case the filter). Please note that this is dangerous because an invalid configuration may cause lots of trouble (up to preventing the machine from booting).
Logged
Aloist
Newbie
Posts: 23
Karma: 2
Re: can I save Opensense configuration to text file, edit and reload it?
«
Reply #3 on:
November 20, 2018, 11:02:03 pm »
Thank you.
I had found the info, after asking the question.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
can I save Opensense configuration to text file, edit and reload it?