Remove a service from GUI possible?

Started by vimage22, January 01, 2026, 03:23:10 PM

Previous topic - Next topic
Happy New Year
For example, can I remove the entire entry for dnsmasq?
I tried looking here:
System: Access: Privileges
But this area does not seem to cover the entire service.
And this is just to remove it from displaying, not the underlying software.
Thanks.

Well, the right way would be to add a user with limited privileges. Admin + exclusions are not possible. I know that's a churn for "almost everything", but that's also not a typical use case.

You can also remove pages from the menu for everyone via adding menu override files, but the URLs are still accessible manually so only do this if you're not trying to improve security.


Cheers,
Franco

January 01, 2026, 03:38:44 PM #2 Last Edit: January 01, 2026, 05:05:44 PM by vimage22
Excellent, thank you. I will google 'menu override files'. It is not security related, I just find myself clicking on the wrong service.

I modified 2 files. They will not survive updates, but I'm good with that.
comment lines 127-133
/usr/local/opnsense/mvc/app/models/OPNsense/Core/Menu/Menu.xml
comment lines 3-13
/usr/local/opnsense/mvc/app/models/OPNsense/Dnsmasq/Menu/Menu.xml
execute
/usr/local/etc/rc.configure_plugins

Thanks again.