Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
"Automatically configure interfaces on boot"
« previous
next »
Print
Pages: [
1
]
Author
Topic: "Automatically configure interfaces on boot" (Read 1734 times)
withawat3555@gmail.com
Newbie
Posts: 1
Karma: 0
"Automatically configure interfaces on boot"
«
on:
September 07, 2020, 07:49:16 am »
Hi bro!!
I'm currently working on a cloud platform to automate the setup process for a network infrastructure.
Openstack is used to allocate network interface to my opnsense firewall, and it works great! But each time a new opnsense instance is create the interfaces has to be configured manually.
Would it be possible for me to create a script that automatically recognizes all the connected interfaces and configures them to be either LAN or WAN?
800hd4k
For example, if one of the connected interfaces has a 192.0.0.0/8 network, then the interfaces would automatically be configured to a LAN port.
I'm not asking anyone to create a script, just a pointer in the right direction!
Any help on this would be greatly appreciated!
Thank you
«
Last Edit: September 07, 2020, 08:02:06 am by withawat3555@gmail.com
»
Logged
franco
Administrator
Hero Member
Posts: 15963
Karma: 1414
Re: "Automatically configure interfaces on boot"
«
Reply #1 on:
September 07, 2020, 08:50:36 am »
The easiest way to automate this is to switch the /conf/config.xml prior to boot although that is no deployment process.... more like predeployment if you need to change the image file. We were discussing cloud-init integration to automate this deployment, but we re not at a point where this can be used.
It's something I want to look at next year in more detail.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
"Automatically configure interfaces on boot"