OPNsense Forum

English Forums => General Discussion => Topic started by: brixo on February 21, 2020, 03:29:21 pm

Title: Adding Interfaces (NIC) via API and/or configctl
Post by: brixo on February 21, 2020, 03:29:21 pm
Hi all,

Just getting to grips with OPNSense after a long time with pfSense, mainly due to the view that it will have a full API for all features at some point in the future.

I am trying to figure what breaks and gets overwritten if I start messing with .conf files for services or stuff like interfaces etc.  Do I edit the /conf/config.xml file?  Do I edit files directly?

Initially, I just want to add new interfaces/IP addresses by *not* using the GUI.  Am I best using confctl (if so, how), as I cannot see anything in the API to do this yet?

Any pointers are appreciated.
Title: Re: Adding Interfaces (NIC) via API and/or configctl
Post by: random1104 on September 20, 2021, 11:47:40 pm
Reviving the post...

I would like to setup the following through CLI:
- Create a VLAN
- Assign/Create an Interface
- Setup CARP
- Create aliases
- Configure firewall rules
- Configure outgoing NAT
- Install FRR
- Enable FRR config replication
- Setup BGP
- Setup BFD

Is configctl the tool for the task?