OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: StevieT on February 04, 2017, 11:36:09 pm

Title: OpnSense Webservices API / REST API?
Post by: StevieT on February 04, 2017, 11:36:09 pm
Hi,
I'm currently using pfSense for the internal firewall/router for my labs. I've been able to automate just about every portion of my lab build process using PowerShell with the exception of configuring the firewall. I generate XML config files on the fly, but I still have to manually install them at build time.

Every now and then I do a search to see what Open Source firewalls are available that provide automation functionality (SSH, REST API etc.) and I saw OpnSense has a mention of "REST API" on the home page. I got a little excited and started looking into its scope; is it limited to certain functionality or is it fully functional.

I've not been able to find anything in the documentation aside from one page (https://docs.opnsense.org/development/frontend/routing.html) that's a little vague on details.

As it's promoted on the front page as a "choose us because..." type feature, I was expecting at least some sort of mention somewhere in the documentation about it.

So... Does OpnSense have a functional web services/REST API or is it a road map feature?

If OpnSense does have a REST API, how is it used, how is it secured and where is the documentation about it?

Thanks in advance.

Steve
Title: Re: OpnSense Webservices API / REST API?
Post by: sceptiQ on April 27, 2017, 02:33:07 pm
+1

:)
Title: Re: OpnSense Webservices API / REST API?
Post by: fabian on April 27, 2017, 03:18:20 pm
https://docs.opnsense.org/development/how-tos/api.html
Title: Re: OpnSense Webservices API / REST API?
Post by: sceptiQ on April 27, 2017, 04:48:47 pm
thx!

i searched rest but not api... :/