1
General Discussion / Adding Interfaces (NIC) via API and/or configctl
« 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.
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.