Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Changing DHCP settings from console?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Changing DHCP settings from console? (Read 8833 times)
incirrata
Newbie
Posts: 19
Karma: 3
Changing DHCP settings from console?
«
on:
March 29, 2019, 08:50:58 pm »
I've made a mistake configuring a new firewall: I enabled DHCP on LAN and after connecting to the web interface I checked "Deny unknown clients" without immediately adding any hosts to the static mapping list. I didn't realize the problem at first, it only became apparent when my host tried to renew DHCP. I can still log in via the console, but I can't reach the web interface at all. Is there a config file I can edit to disable "Deny unknown clients" for the LAN interface?
I've tried setting "denyunknown" in /conf/config.xml to 0 and rebooting, but this didn't do the trick.
EDIT: Disaster averted! For anyone reading this thread in the future, just follow these steps to save yourself:
Log into the firewall console as root or some other admin user.
If you logged in as root, hit 8 to go to the shell.
Edit the file /conf/config.xml
Go to the section <dhcp> and find the subsection <lan>
Add the line <enable>1</enable> just underneath <lan>
Remove the entire line <denyunknown>1</denyunknown>, don't just set it to 0!
Save the file
Reload DHCP; if you are logged in as root just go back to the console and hit 11 to reload all services
«
Last Edit: March 29, 2019, 09:10:18 pm by incirrata
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Changing DHCP settings from console?