mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
add firewall for non-lighthouse
This commit is contained in:
parent
403b747449
commit
435d11e9e5
1 changed files with 16 additions and 0 deletions
|
|
@ -20,5 +20,21 @@ in {
|
|||
inherit (s.hosts.${config.hostSpec.hostName}) cert isLighthouse;
|
||||
key = config.sops.secrets."keys/nebula".path;
|
||||
enable = true;
|
||||
firewall = lib.mkIf (!config.services.nebula.networks.wce.isLighthouse) {
|
||||
inbound = [
|
||||
{
|
||||
host = "any";
|
||||
port = "any";
|
||||
proto = "any";
|
||||
}
|
||||
];
|
||||
outbound = [
|
||||
{
|
||||
host = "any";
|
||||
port = "any";
|
||||
proto = "any";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue