services/unbound: open firewall for dns from containers
This commit is contained in:
parent
a2f82bc7d5
commit
5722249dd2
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
grep '^0\.0\.0\.0' "${inputs.stevenblack-hosts}/hosts" | awk '{print "local-zone: \""$2"\" always_refuse"}' | tail -n +2 >> "$out"
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
networking.firewall.interfaces."ve-+" = {
|
||||||
|
allowedUDPPorts = [ 53 853 ];
|
||||||
|
allowedTCPPorts = [ 53 853 ];
|
||||||
|
};
|
||||||
networking.firewall.interfaces.wg0 = {
|
networking.firewall.interfaces.wg0 = {
|
||||||
allowedUDPPorts = [ 53 853 ];
|
allowedUDPPorts = [ 53 853 ];
|
||||||
allowedTCPPorts = [ 53 853 ];
|
allowedTCPPorts = [ 53 853 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue