Reload config.xml without reboot

Started by mimugmail, November 20, 2018, 07:13:08 AM

Previous topic - Next topic
It's easy to revert a config.xml via SSH when just replacing the file itself or editing and finally reboot.
Is there a way to also do this without a reboot via CLI?

Just adding some stuff to config.xml and hitting save via UI overwrites it and via google you only find pfsense examples not fitting here.

Anyone? :)

Thx
Michael

Option 11 from the menu?

or

# opnsense-shell reload

PS: Yes it won't reload everything. But it reloads all vital systems...


Yes and no, the console menu may deserve a docs page in its entirety, but other than shortly describing what each option does there's not a lot (of surprising behaviour) to document.


Cheers,
Franco


Same thing. There's also:

# man opnsense-shell

But it's currently missing the supported commands. ;)

OK, great. And all new MVC code also adds a UUID, how is it generated? Is there a logic behind I'm not aware of? :)


I tried reloading my adjusted config in /conf/config.xml with option 11 and it just hangs at the VLAN interfaces (see attachment)...

How can I make the output more verbose???


Probably hangs during ifconfig call somewhere in the kernel...

You could also try to explain what you're doing instead of posting to an unrelated 2018 forum entry. ;)


Cheers,
Franco

I had to re-open an older back door to our network since somehow the RADIUS based IPSec VPN suddenly was not working anymore.
So I removed the disabled section in the firewall rules and then tried to reload the config from the CLI. I only had CLI access as I was using an even older back door from another location and was using various SSH and Telnnet "jump servers" to get to the CLI of the opnsense...