Archive > 16.7 Legacy Series

OPNSense CLI interface on Roadmap?

(1/3) > >>

ittchmh:
Hi!

Then MS closed TMG Server development I started searching alternatives, more then 2 years ago
I choesed Vyatta, after some time I falining love into CLI, but after a few months Vyatta was sold to Brocard and Open Source project was closed. I switched to pfSense.

Configuration with CLI is very fast and very easy to edit template config.
After open source project Vyatta was closed, community forked project, now it is VyOS, it based on PERL

If OPNsens has API will it be easy to add CLI?
Or CLI is somewere in roadmap?


AdSchellevis:
Hi,

For configuration changes we focus on a restful api, which can easily be used by various scripting languages and automation tools. We're haven't planned a separate  control to set parameters from the CLI at the moment.

A lot of commands however will (are) also available from the cli by using our configd system.

Regards,

Ad

interfaSys:

--- Quote from: AdSchellevis on January 28, 2016, 11:13:03 am ---A lot of commands however will (are) also available from the cli by using our configd system.
--- End quote ---

Are these listed somewhere?

AdSchellevis:
the command templates are installed in /usr/local/opnsense/service/conf/actions.d/

A list can be obtained by:


--- Code: ---configctl configd actions

--- End code ---

Which is also a defined command...

interfaSys:
Thanks!

For reference, the list looks like this

--- Code: ---# configctl configd actions
...
proxy fetchacls [ Fetch external Proxy (squid) ACLs ]
service reload all [  ]
proxy restart [  ]
proxy status [  ]
captiveportal restart [  ]
...
--- End code ---

and listed actions are invoked like this:

--- Code: ---# configctl proxy status
squid is running as pid 99218.
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version