OPNsense Forum

English Forums => General Discussion => Topic started by: vimage22 on January 01, 2026, 03:23:10 PM

Title: Remove a service from GUI possible?
Post by: vimage22 on January 01, 2026, 03:23:10 PM
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.
Title: Re: Remove a service from GUI possible?
Post by: franco on January 01, 2026, 03:31:51 PM
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
Title: (Solved) Re: Remove a service from GUI possible?
Post by: vimage22 on January 01, 2026, 03:38:44 PM
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.