services/unbound: open firewall for dns from containers

This commit is contained in:
Cilly Leang 2026-03-15 23:34:58 +11:00
parent a2f82bc7d5
commit 5722249dd2
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -7,6 +7,10 @@ let
grep '^0\.0\.0\.0' "${inputs.stevenblack-hosts}/hosts" | awk '{print "local-zone: \""$2"\" always_refuse"}' | tail -n +2 >> "$out"
'';
in {
networking.firewall.interfaces."ve-+" = {
allowedUDPPorts = [ 53 853 ];
allowedTCPPorts = [ 53 853 ];
};
networking.firewall.interfaces.wg0 = {
allowedUDPPorts = [ 53 853 ];
allowedTCPPorts = [ 53 853 ];