ansibleguy / collection_opnsense

Ansible Collection to manage OPNSense firewalls using their API

Home Page:https://opnsense.ansibleguy.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: API-usage refactoring

ansibleguy opened this issue · comments

Link to API

Description

The /get API endpoints will change in a major way in the future - as described in this OPNSense issue.
We will have to refactor our existing API implementation:
OPNSense API usage

This should be implemented as abstracted/shared logic: https://opnsense.ansibleguy.net/en/latest/usage/4_develop.html#abstraction

Hi Jeef, I have a question, It will support aliases and port range on firewall rules in the next collection release?

@enmanuelmoreira Greetings!
I don't think that the OPNSense 'Firewall-Automation-Filter' Rules (API manageable ones) do yet support those.. :/

You can check it yourself in the WebUI: https://<FIREWALL>/ui/firewall/filter/
image

If you find that something is configurable in the web-ui 'Automation-Rules' but not using the ansible-module(s) - I can check it!

Grettings @ansibleguy!

I have a couple of aliases to allow multiple ports, in my example email ports
image

Then, when I tried to apply them to a rule it worked:

image

It would be awesome if via Ansible could configure aliases and apply later on rules (it will simplify a ton of code)