Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to modify configuration files by hand
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to modify configuration files by hand (Read 18901 times)
FrenchFries
Guest
How to modify configuration files by hand
«
on:
August 16, 2017, 02:43:25 pm »
Dear friends,
I am trying to migrate list the list of dhcpd hosts from one firewall to another (to migrate dhcpd).
As root, I tried to modify /var/dhcpd/etc/dhcpd.conf
by hand as it is faster.
It does not work, on every startup of OPNsense, the old configuration is retained.
So is it possible to copy files by hand in OPNsense?
Is all configuration retained in OPNsense referencial and not FreeBSD?
Kind regards,
«
Last Edit: August 16, 2017, 02:45:58 pm by FrenchFries
»
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: How to modify configuration files by hand
«
Reply #1 on:
August 16, 2017, 03:00:05 pm »
Hi,
This is done on purpose to avoid uncontrollable syntax errors, reboot-persistency and config.xml portability.
Most files are written from the backend, the files are under /usr/local/etc/inc, DHCP configurations are written from services.inc.
Cheers,
Franco
Logged
clustev
Newbie
Posts: 5
Karma: 0
Re: How to modify configuration files by hand
«
Reply #2 on:
August 20, 2020, 10:40:47 am »
Where is dhcp config now in OPNsense 20.7.1-amd64?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: How to modify configuration files by hand
«
Reply #3 on:
August 20, 2020, 11:21:26 am »
Where it always has been. See original question above.
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: How to modify configuration files by hand
«
Reply #4 on:
August 20, 2020, 11:25:27 am »
You can download a complete configuration, add your entries in the XML with a suitably comfortable editor, then re-upload the config.
That's what I did when I wanted to remove some credentials that the UI would not let me delete.
«
Last Edit: August 20, 2020, 11:40:10 am by pmhausen
»
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: How to modify configuration files by hand
«
Reply #5 on:
August 20, 2020, 11:26:27 am »
Judging from the other thread the answer is probably this:
/usr/local/etc/inc/plugins.inc.d/dhcpd.inc
PS:
https://forum.opnsense.org/index.php?topic=17286.0
Logged
clustev
Newbie
Posts: 5
Karma: 0
Re: How to modify configuration files by hand
«
Reply #6 on:
August 20, 2020, 02:36:12 pm »
Franco, thx a lot, now it works!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to modify configuration files by hand