nixos: Improve inner firewalls
This commit is contained in:
parent
c0ca7888aa
commit
f38c5872a4
@ -155,7 +155,15 @@
|
||||
server.enable = true;
|
||||
|
||||
firewall = {
|
||||
trustedInterfaces = [ "base" "vms" ];
|
||||
trustedInterfaces = [ "vms" ];
|
||||
extraRules = ''
|
||||
table inet filter {
|
||||
chain forward {
|
||||
# Trust that the outer firewall has done the filtering!
|
||||
iifname base oifname vms accept
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -117,7 +117,15 @@
|
||||
|
||||
firewall = {
|
||||
tcp.allowed = [ 19999 ];
|
||||
trustedInterfaces = [ "vms" "ctrs" ];
|
||||
trustedInterfaces = [ "ctrs" ];
|
||||
extraRules = ''
|
||||
table inet filter {
|
||||
chain forward {
|
||||
# Trust that the outer firewall has done the filtering!
|
||||
iifname vms oifname ctrs accept
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
containers.instances =
|
||||
|
Loading…
Reference in New Issue
Block a user