Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

terraform-provider-opnsense

> 数据库
Open source

OPNsense Terraform Provider

192 stars0 likes2 views
WebsiteGitHub

About

OPNsense Terraform Provider

Terraform Provider for OPNsense

This Terraform provider enables management of various configs and resources within OPNsense®.

[!WARNING] This provider is under active development and makes no guarantee of stability. Breaking changes to resource and data source schemas will occur as needed until v1.0. It is not recommended to use this provider in production environments.

  • Example Usage
  • Long Road to v1
  • Documentation
  • Contributing
  • Current API Coverage
    • Core API
    • Plugin API
  • License

Example Usage

…

Long Road to v1

Version 1.0 will be released once the provider achieves feature-parity with the Core OPNsense API and all resources have comprehensive acceptance tests (see Current API Coverage). Plugin resources will be added as requested (at a lower priority than requests for Core resources). There is no Plugin API converage requirement for v1.

v1 represents the first release where resource and data source schemas will be guaranteed to be stable, and breaking changes to these schemas will be forbidden. Any updates to these schemas will following appropriate SemVer conventions. Until v1.0 is reached, schemas are subject to change as needed to improve usability and align with best practices. Users should always check the release notes when upgrading between pre-v1.0 versions to understand any breaking changes that may affect their configurations.

Documentation

  • Terraform Registry Documentation - Full resource and data source reference
  • Examples - Working examples for all resources

Contributing

Interested in contributing? Please see our Contributing Guide for development setup, testing requirements, and guidelines.

Current API Coverage

This provider is actively expanding to cover the OPNsense API. The tables below contain the current status of said coverage.

  • ✅ = Fully implemented
  • = Missing acceptance tests
  • ❌ = Not implemented

Core API

Module/Controller/Resource Resource Data Source
Auth/Group ❌ ❌
Auth/Priv ❌ ❌
Auth/User ❌ ❌
Captiveportal/Settings ❌ ❌
Captiveportal/Service/Template ❌ ❌
Captiveportal/Settings/Zone ❌ ❌
Core/Hasync ❌ ❌
Core/Snapshots ❌ ❌
Core/Tunables ❌ ❌
Cron/Job ❌ ❌
Dhcrelay/Settings ❌ ❌
Dhcrelay/Settings/Dest ❌ ❌
Dhcrelay/Settings/Relay ❌ ❌
Diagnostics/Interface ❌
Diagnostics/Lvtemplate ❌ ❌
Diagnostics/Lvtemplate/Item ❌ ❌
Dnsmasq/Settings ❌ ❌
Dnsmasq/Settings/Boot ❌ ❌
Dnsmasq/Settings/Domain ❌ ❌
Dnsmasq/Settings/Host ✅ ✅
Dnsmasq/Settings/Option ❌ ❌
Dnsmasq/Settings/Range ❌ ❌
Dnsmasq/Settings/Tag ❌ ❌
Firewall/Alias ✅ ✅
Firewall/Category
Firewall/Filter ✅ ✅
Firewall/Group ❌ ❌
Firewall/NPTv6 ❌ ❌
Firewall/Source NAT ✅ ✅
Firewall/One-to-One NAT ✅ ✅
Interfaces/Bridge ❌ ❌
Interfaces/Gif ❌ ❌
Interfaces/Gre ❌ ❌
Interfaces/Lagg ❌ ❌
Interfaces/Loopback ❌ ❌
Interfaces/Neighbor ❌ ❌
Interfaces/Overview ✅
Interfaces/Vip ✅ ✅
Interfaces/Vlan ✅ ✅
Interfaces/Vxlan ❌ ❌
Ipsec/Settings ❌ ❌
Ipsec/Connections/Local ✅ ❌
Ipsec/Connections/Remote ✅ ❌
Ipsec/Connections/Child ✅ ❌
Ipsec/Connections/Connection ✅ ❌
Ipsec/KeyPairs ❌ ❌
Ipsec/ManualSpd ❌ ❌
Ipsec/Pools ❌ ❌
Ipsec/Psk ✅ ❌
Ipsec/Vti ✅ ❌
Kea/CtrlAgent ❌ ❌
Kea/Dhcpv4/Peer ✅ ✅
Kea/Dhcpv4/Reservation ✅ ✅
Kea/Dhcpv4/Subnet ✅ ✅
Kea/Dhcpv6/PD Pool ✅ ✅
Kea/Dhcpv6/Peer ✅ ✅
Kea/Dhcpv6/Reservation ✅ ✅
Kea/Dhcpv6/Subnet ✅ ✅
Monit/Settings ❌ ❌
Monit/Settings/Alert ❌ ❌
Monit/Settings/Service ❌ ❌
Monit/Settings/Test ❌ ❌
Openvpn/Client Overwrites ✅ ✅
Openvpn/Instances ✅ ✅
Openvpn/Instances/Static Key ✅ ✅
Openvpn/Instances/Generate Key ✅ (ephemeral)
Routes/Route ✅ ✅
Routing/Gateway ❌ ❌
Syslog/Settings ❌ ❌
Syslog/Settings/Destination ❌ ❌
Trafficshaper/Pipe ❌ ❌
Trafficshaper/Queue ❌ ❌
Trafficshaper/Rule ❌ ❌
Trust/Settings ❌ ❌
Trust/CA ❌ ❌
Trust/Cert ❌ ❌
Unbound/Settings ✅ ✅
Unbound/Settings/Domain Override ✅ ✅
Unbound/Settings/Forward ✅ ✅
Unbound/Settings/Host Alias ✅ ✅
Unbound/Settings/Host Override ✅ ✅
Unbound/Settings/ACL ❌ ❌
Wireguard/Settings ❌ ❌
Wireguard/Client
Wireguard/Server
Wireguard/Generate Key Pair ❌ ❌
Wireguard/Generate PSK ❌ ❌

Plugin API

The following is a non-exhaustive list of the plugin APIs OPNsense supports. The table shows those which are 'highest priority'. Please open a feature request to indicate interest for any plugin not listed here.

Plugin/Controller/Resource Resource Data Source
Acmeclient/Settings ❌ ❌
Acmeclient/Account ❌ ❌
Acmeclient/Validation ❌ ❌
Acmeclient/Certificates ❌ ❌
Acmeclient/Action ❌ ❌
Haproxy/Maintenance ❌ ❌
Haproxy/Settings ❌ ❌
Haproxy/Settings/Acl ❌ ❌
Haproxy/Settings/Action ❌ ❌
Haproxy/Settings/Backend ❌ ❌
Haproxy/Settings/Cpu ❌ ❌
Haproxy/Settings/Errorfile ❌ ❌
Haproxy/Settings/Fcgi ❌ ❌
Haproxy/Settings/Frontend ❌ ❌
Haproxy/Settings/Group ❌ ❌
Haproxy/Settings/Healthcheck ❌ ❌
Haproxy/Settings/Lua ❌ ❌
Haproxy/Settings/Mapfile ❌ ❌
Haproxy/Settings/Server ❌ ❌
Haproxy/Settings/User ❌ ❌
Quagga/General ❌ ❌
Quagga/Bfd ❌ ❌
Quagga/Bfd/Neighbor ❌ ❌
Quagga/Bgp ❌ ❌
Quagga/Bgp/AS Path
Quagga/Bgp/Community List
Quagga/Bgp/Neighbor
Quagga/Bgp/Peer Group ❌ ❌
Quagga/Bgp/Prefix List
Quagga/Bgp/Route Map
Quagga/Ospf ❌ ❌
Quagga/Ospf/Interface ❌ ❌
Quagga/Ospf/Neighbor ❌ ❌
Quagga/Ospf/Network ❌ ❌
Quagga/Ospf/Prefix List ❌ ❌
Quagga/Ospf/Redistribution ❌ ❌
Quagga/Ospf/Route Map ❌ ❌
Quagga/Ospf6 ❌ ❌
Quagga/Ospf6/Interface ❌ ❌
Quagga/Ospf6/Neighbor ❌ ❌
Quagga/Ospf6/Network ❌ ❌
Quagga/Ospf6/Prefix List ❌ ❌
Quagga/Ospf6/Redistribution ❌ ❌
Quagga/Rip ❌ ❌
Quagga/Static ❌ ❌
Quagga/Static/Route ❌ ❌

The complete OPNsense API documentation can be found at: docs.opnsense.org

License

This project is licensed under the Mozilla Public License v2.0 - see the LICENSE file for details.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goopnsenseterraformterraform-provider

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库