Unbound: fw-allow from internal
This commit is contained in:
parent
582f5194d3
commit
1159ac8a36
2 changed files with 22 additions and 0 deletions
roles/unbound
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
iifname $IF_DN42_INTERNAL udp dport 53 accept comment DNS
|
Loading…
Add table
Reference in a new issue