nixos: Improve inner firewalls
This commit is contained in:
parent
c0ca7888aa
commit
f38c5872a4
@ -155,7 +155,15 @@
|
|||||||
server.enable = true;
|
server.enable = true;
|
||||||
|
|
||||||
firewall = {
|
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 = {
|
firewall = {
|
||||||
tcp.allowed = [ 19999 ];
|
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 =
|
containers.instances =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user