RepositoryPythonATAustria
O-X-L

O-X-L/ansible-opnsense

Ansible Collection to manage OPNsense firewalls using their API

515stars
109forks
18issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: ansible-modules

#1 Repository of the week

1
TINIX TRENDING·Topic: opnsense

#1 Repository of the week

1
TINIX TRENDING·Topic: ansible-collection

#1 Repository of the week

Ansible Collection to manage OPNsense Firewalls

Support Badge (Donate, Support-Licenses)


Lint Python Lint Ansible Unit Test Status Ansible Galaxy

Functional Tests:

Internal CI: Tester Role | Jobs API


Requirements

The httpx python module is used for API communications!

python3 -m pip install --upgrade httpx

Then - install the collection itself:

# latest version:
ansible-galaxy collection install git+https://github.com/O-X-L/ansible-opnsense.git

# stable/tested version:
ansible-galaxy collection install git+https://github.com/O-X-L/ansible-opnsense.git,25.7.8
## OR
ansible-galaxy collection install oxlorg.opnsense

Usage

See: Docs

Docs Uptime

If you DO NOT want to use Ansible - this fork provides you with a raw Python3 interface.


Support the project(s)

Support the Open-Source projects that make these modules possible:


Contribute

Feel free to contribute to this project using pull-requests, issues and discussions!

See also: Contributing


Version Support

We try that the oxlorg.opnsense modules always support the latest version of OPNsense.

If an API changed, the current module-implementation might fail for firewalls running an older firmware.

As this project is unfunded we do not actively check for API-changes - if you find missing functionalities you need/want to have please report it!


Modules

Development States:

not implemented => development => testing => unstable (practical testing) => stable

Implemented

FunctionModuleUsageState
Baseoxlorg.opnsense.listDocsstable
Baseoxlorg.opnsense.reloadDocsstable
Rawoxlorg.opnsense.rawDocsunstable
Servicesoxlorg.opnsense.serviceDocsstable
Aliasoxlorg.opnsense.aliasDocsstable
Aliasoxlorg.opnsense.alias_multiDocsstable
Aliasoxlorg.opnsense.alias_purgeDocsunstable
Rulesoxlorg.opnsense.ruleDocsstable
Rulesoxlorg.opnsense.rule_multiDocsstable
Rulesoxlorg.opnsense.rule_purgeDocsunstable
Rule Interface Groupsoxlorg.opnsense.rule_interface_groupDocsstable
Savepointsoxlorg.opnsense.savepointDocsstable
Packagesoxlorg.opnsense.packageDocsstable
Systemoxlorg.opnsense.systemDocsstable
Cron-Jobsoxlorg.opnsense.cronDocsstable
Routesoxlorg.opnsense.routeDocsstable
Gatewaysoxlorg.opnsense.gatewayDocsstable
DNSoxlorg.opnsense.unbound_generalDocsstable
DNSoxlorg.opnsense.unbound_aclDocsstable
DNSoxlorg.opnsense.unbound_forwardDocsstable
DNSoxlorg.opnsense.unbound_dotDocsstable
DNSoxlorg.opnsense.unbound_hostDocsstable
DNSoxlorg.opnsense.unbound_host_aliasDocsstable
DNSoxlorg.opnsense.unbound_dnsblDocsstable
Syslogoxlorg.opnsense.syslogDocsstable
IPSecoxlorg.opnsense.ipsec_connection, oxlorg.opnsense.ipsec_tunnelDocsstable
IPSecoxlorg.opnsense.ipsec_pool, oxlorg.opnsense.ipsec_networkDocsstable
IPSecoxlorg.opnsense.ipsec_auth_localDocsstable
IPSecoxlorg.opnsense.ipsec_auth_remoteDocsstable
IPSecoxlorg.opnsense.ipsec_childDocsstable
IPSecoxlorg.opnsense.ipsec_vtiDocsstable
IPSecoxlorg.opnsense.ipsec_certDocsstable
IPSecoxlorg.opnsense.ipsec_pskDocsstable
IPSecoxlorg.opnsense.ipsec_manual_spdDocsstable
IPSecoxlorg.opnsense.generalDocsunstable
Traffic Shaperoxlorg.opnsense.shaper_pipeDocsstable
Traffic Shaperoxlorg.opnsense.shaper_queueDocsstable
Traffic Shaperoxlorg.opnsense.shaper_ruleDocsstable
Monitoxlorg.opnsense.monit_serviceDocsstable
Monitoxlorg.opnsense.monit_alertDocsstable
Monitoxlorg.opnsense.monit_testDocsstable
WireGuardoxlorg.opnsense.wireguard_serverDocsstable
WireGuardoxlorg.opnsense.wireguard_peerDocsstable
WireGuardoxlorg.opnsense.wireguard_showDocsstable
WireGuardoxlorg.opnsense.wireguard_generalDocsstable
Interfacesoxlorg.opnsense.interface_vlanDocsstable
Interfacesoxlorg.opnsense.interface_vxlanDocsstable
Interfacesoxlorg.opnsense.interface_vipDocsstable
Interfacesoxlorg.opnsense.interface_laggDocsstable
Interfacesoxlorg.opnsense.interface_loopbackDocsstable
Interfacesoxlorg.opnsense.interface_greDocsstable
Interfacesoxlorg.opnsense.interface_bridgeDocsunstable
Interfacesoxlorg.opnsense.interface_gifDocsunstable
NAToxlorg.opnsense.nat_sourceDocsstable
NAToxlorg.opnsense.nat_one_to_oneDocsstable
Dynamic Routingoxlorg.opnsense.frr_diagnosticDocsstable
Dynamic Routingoxlorg.opnsense.frr_generalDocsstable
Dynamic Routingoxlorg.opnsense.frr_bfd_generalDocsstable
Dynamic Routingoxlorg.opnsense.frr_bfd_neighborDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_generalDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_neighborDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_prefix_listDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_route_mapDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_community_listDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_as_pathDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_redistributionDocsstable
Dynamic Routingoxlorg.opnsense.frr_bgp_peer_groupDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_generalDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_prefix_listDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_route_mapDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_interfaceDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_networkDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf_redistributionDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_generalDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_prefix_listDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_route_mapDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_interfaceDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_networkDocsstable
Dynamic Routingoxlorg.opnsense.frr_ospf3_redistributionDocsstable
Dynamic Routingoxlorg.opnsense.frr_ripDocsstable
DNSoxlorg.opnsense.bind_generalDocsstable
DNSoxlorg.opnsense.bind_blocklistDocsstable
DNSoxlorg.opnsense.bind_aclDocsstable
DNSoxlorg.opnsense.bind_domainDocsstable
DNSoxlorg.opnsense.bind_recordDocsstable
DNSoxlorg.opnsense.bind_record_multiDocsstable
Web Proxyoxlorg.opnsense.webproxy_generalDocsstable
Web Proxyoxlorg.opnsense.webproxy_cacheDocsstable
Web Proxyoxlorg.opnsense.webproxy_parentDocsstable
Web Proxyoxlorg.opnsense.webproxy_trafficDocsstable
Web Proxyoxlorg.opnsense.webproxy_forwardDocsstable
Web Proxyoxlorg.opnsense.webproxy_aclDocsstable
Web Proxyoxlorg.opnsense.webproxy_icapDocsstable
Web Proxyoxlorg.opnsense.webproxy_authDocsstable
Web Proxyoxlorg.opnsense.webproxy_remote_aclDocsstable
Web Proxyoxlorg.opnsense.webproxy_pac_proxyDocsstable
Web Proxyoxlorg.opnsense.webproxy_pac_matchDocsstable
Web Proxyoxlorg.opnsense.webproxy_pac_ruleDocsstable
IDS/IPSoxlorg.opnsense.ids_actionDocsstable
IDS/IPSoxlorg.opnsense.ids_generalDocsstable
IDS/IPSoxlorg.opnsense.ids_rulesetDocsstable
IDS/IPSoxlorg.opnsense.ids_ruleDocsstable
IDS/IPSoxlorg.opnsense.ids_user_ruleDocsstable
IDS/IPSoxlorg.opnsense.ids_policyDocsstable
IDS/IPSoxlorg.opnsense.ids_policy_ruleDocsstable
OpenVPNoxlorg.opnsense.openvpn_clientDocsstable
OpenVPNoxlorg.opnsense.openvpn_serverDocsstable
OpenVPNoxlorg.opnsense.openvpn_static_keyDocsstable
OpenVPNoxlorg.opnsense.openvpn_statusDocsstable
OpenVPNoxlorg.opnsense.openvpn_client_overrideDocsstable
Nginxoxlorg.opnsense.nginx_generalDocsstable
Nginxoxlorg.opnsense.nginx_upstream_serverDocsstable
DHCP Relayoxlorg.opnsense.dhcrelay_relayDocsstable
DHCP Relayoxlorg.opnsense.dhcrelay_destinationDocsstable
DHCPoxlorg.opnsense.dhcp_generalDocsstable
DHCP Subnetoxlorg.opnsense.dhcp_subnetDocsstable
DHCP Reservationoxlorg.opnsense.dhcp_reservationDocsstable
DHCP Controlagentoxlorg.opnsense.dhcp_controlagentDocsstable
ACME (Certificates)oxlorg.opnsense.acme_accountDocsstable
ACME (Certificates)oxlorg.opnsense.acme_actionDocsstable
ACME (Certificates)oxlorg.opnsense.acme_generalDocsstable
ACME (Certificates)oxlorg.opnsense.acme_validationDocsstable
ACME (Certificates)oxlorg.opnsense.acme_certificateDocsstable
Postfixoxlorg.opnsense.postfix_generalDocsstable
Postfixoxlorg.opnsense.postfix_domainDocsstable
Postfixoxlorg.opnsense.postfix_recipientDocsstable
Postfixoxlorg.opnsense.postfix_recipientbccDocsstable
Postfixoxlorg.opnsense.postfix_senderDocsstable
Postfixoxlorg.opnsense.postfix_senderbccDocsstable
Postfixoxlorg.opnsense.postfix_sendercanonicalDocsstable
Postfixoxlorg.opnsense.postfix_headercheckDocsstable
Postfixoxlorg.opnsense.postfix_addressDocsstable
Snapshotoxlorg.opnsense.snapshotDocsstable
High Availabilityoxlorg.opnsense.hasync_generalDocsstable
High Availabilityoxlorg.opnsense.hasync_serviceDocsstable
User Managementoxlorg.opnsense.userDocsunstable
User Managementoxlorg.opnsense.groupDocsunstable
User Managementoxlorg.opnsense.privilegeDocsunstable
Neighboroxlorg.opnsense.neighborDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_generalDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_domainDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_hostDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_rangeDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_optionDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_bootDocsunstable
Dnsmasqoxlorg.opnsense.dnsmasq_tagDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_cacheDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_defaultsDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_loggingDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_peersDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_settingsDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_statsDocsunstable
HAProxyoxlorg.opnsense.haproxy_general_tuningDocsunstable
HAProxyoxlorg.opnsense.haproxy_cpuDocsunstable
HAProxyoxlorg.opnsense.haproxy_userDocsunstable
HAProxyoxlorg.opnsense.haproxy_groupDocsunstable
HAProxyoxlorg.opnsense.haproxy_maintenanceDocsunstable
HAProxyoxlorg.opnsense.haproxy_aclDocsunstable
HAProxyoxlorg.opnsense.haproxy_luaDocsunstable
HAProxyoxlorg.opnsense.haproxy_actionDocsunstable
HAProxyoxlorg.opnsense.haproxy_errorfileDocsunstable
HAProxyoxlorg.opnsense.haproxy_fcgiDocsunstable

Roadmap

See: Feature Requests

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryPython
ansible/awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.

15.7k
Nov 26, 2026
RepositoryPython
bitwire-it/ipblocklist

IP lists full of bad IPs - Updated every 2H

971
Dec 2, 2026
RepositoryPython
travisghansen/hass-opnsense

OPNsense integration with Home Assistant

477
Dec 1, 2026
RepositoryPython
nextcloud/ansible-collection-nextcloud-admin

Manage your nextcloud server with ansible. Community developed and maintained.

167
Nov 23, 2026
RepositoryPython
oVirt/ovirt-ansible-collection

Ansible collection with official oVirt modules and roles

81
Nov 12, 2026
RepositoryPython
telekom-mms/ansible-collection-icinga-director

An Ansible collection that contains modules to change objects in Icinga 2 using the director API.

81
Nov 18, 2026
RepositoryPython
Panniantong/Agent-Reach

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

116.7k
Nov 24, 2026
RepositoryShell
MichaelCade/90DaysOfDevOps

This repository started out as a learning in public project for myself and has now become a structured learning map for many in the community. We have 3 years under our belt covering all things DevOps, including Principles, Processes, Tooling and Use Cases surrounding this vast topic.

31.0k
Jun 24, 2026