Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Batch create VLANs, Interfaces, DHCP Server, CARP, NAT, Firewall Rules, etc
« previous
next »
Print
Pages: [
1
]
Author
Topic: Batch create VLANs, Interfaces, DHCP Server, CARP, NAT, Firewall Rules, etc (Read 360 times)
stif
Newbie
Posts: 8
Karma: 0
Batch create VLANs, Interfaces, DHCP Server, CARP, NAT, Firewall Rules, etc
«
on:
November 20, 2023, 10:20:51 pm »
Hi Folks,
I had a project where i needed over 80 VLANs and CARP IPs and all the corresponding things like DHCP, manual NAT rules, Firewall Rules and Radius Users.
Since i did not want to create all of it via WebUI, i had another idea: i created a backup config.xml file via WebUI, injected all the VLANs etc by processing the config.xml with some python scripts, and then imported the config.xml file again. Works!
If you have similar plans, you might find my collection of scripts useful, so i created a github repo:
https://github.com/nett-media/opnsense-config-generator
Cheers,
Stif
«
Last Edit: November 20, 2023, 11:17:15 pm by stif
»
Logged
cookiemonster
Hero Member
Posts: 1070
Karma: 64
Re: Batch create VLANs, Interfaces, DHCP Server, CARP, NAT, Firewall Rules, etc
«
Reply #1 on:
November 21, 2023, 10:22:19 am »
Very nice. Thanks for sharing.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Batch create VLANs, Interfaces, DHCP Server, CARP, NAT, Firewall Rules, etc