Skip to content

Creating a firewall rule with target “This Firewall” fails #131

Answered by jiuka
ZzenlD asked this question in Q&A
Discussion options

You must be logged in to vote

In the API this is refert to as (self). The following shoud work.

  - name: Allow DNS requests to the firewall
    ansibleguy.opnsense.rule:
      interface: LAN
      action: pass
      protocol: TCP
      destination_net: '(self)'
      destination_port: 53
      description: Allow DNS-Queries
      match_fields: ["description"]
      firewall: <host>
      api_key: <key>
      api_secret: <secret>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ansibleguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants