mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
nebula: add nebula.nebula to trustedInterfaces
This commit is contained in:
parent
3671fde36b
commit
1a8b47032f
@ -46,10 +46,7 @@ inputs:
|
||||
};
|
||||
secrets."nebula/key" = {};
|
||||
};
|
||||
networking.firewall = if nebula.lighthouse != null then {} else
|
||||
{
|
||||
allowedTCPPorts = [ 4242 ];
|
||||
allowedUDPPorts = [ 4242 ];
|
||||
};
|
||||
networking.firewall = { trustedInterfaces = [ "nebula.nebula" ]; }
|
||||
// (if nebula.lighthouse != null then {} else { allowedTCPPorts = [ 4242 ]; allowedUDPPorts = [ 4242 ]; });
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user