Unbound: fw-allow from internal

This commit is contained in:
Théophile Bastian 2025-03-08 21:53:42 +01:00
parent 582f5194d3
commit 1159ac8a36
2 changed files with 22 additions and 0 deletions
roles/unbound
tasks
templates/nftables/filter-input.d

View file

@ -1,4 +1,9 @@
---
- name: Source nftables handlers
import_role:
name: 'nftables'
tasks_from: 'nop.yml'
- name: Install Unbound
apt:
name:
@ -12,3 +17,17 @@
- unbound.conf
- trust-anchor-dn42.zone
notify: reload unbound
- name: Deploy unbound firewall configuration
template:
src: 'nftables/{{ item }}.conf.j2'
dest: '/etc/nftables/{{ item }}.conf'
loop:
- filter-input.d/40-unbound
notify: reload nftables
- name: Etckeeper - commit
import_role:
name: etckeeper_commit
vars:
etckeeper_reason: Configure Unbound recursive DNS resolver

View file

@ -0,0 +1,3 @@
{{ ansible_managed | comment }}
iifname $IF_DN42_INTERNAL udp dport 53 accept comment DNS