OPNsense Forum

English Forums => General Discussion => Topic started by: leszekt on October 01, 2015, 07:15:47 pm

Title: How does the web interface work ?
Post by: leszekt on October 01, 2015, 07:15:47 pm
Hello,

I'd like to ask what is the logic behind the web interface of OPNsense  ? The whole configuration is being performed by it's web interface. There are many commands that need root privileges to be executed, but i don't know how does the web interface do that. Is it using SUDO, the web server is running with root privileges or perhaps a dedicated daemon is listening to commands ?

I'm very curious.

Thanks in advance.
Title: Re: How does the web interface work ?
Post by: AdSchellevis on October 02, 2015, 09:11:42 am
Hi,

Currently the web interface is running as root, but we are making efforts to migrate away from the need for root at the GUI part.
All new parts, and some of the existing, already use the configd system which provides an easy command structure to a unix domain socket.

For more information on the architecture we're migrating too, see:
https://wiki.opnsense.org/index.php/Develop:Architecture

Regards,

Ad