move modules from nodes.nix to mapping.nix
This commit is contained in:
parent
4df3c2678d
commit
5103243bfd
5 changed files with 32 additions and 92 deletions
|
@ -48,7 +48,7 @@ in
|
|||
# Mesh
|
||||
udp dport 51820 accept
|
||||
|
||||
${if lib.elem myName mapping.bastion then ''
|
||||
${if lib.elem myName mapping.bastion.hosts then ''
|
||||
# Mgmt
|
||||
udp dport 51920 accept
|
||||
'' else ""}
|
||||
|
@ -64,7 +64,7 @@ in
|
|||
ct state related,established accept
|
||||
ct state invalid counter drop
|
||||
|
||||
${if lib.elem myName mapping.bastion then ''
|
||||
${if lib.elem myName mapping.bastion.hosts then ''
|
||||
iifname mgmt oifname mesh* accept
|
||||
'' else ""}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue