fix rt routing & nftables
This commit is contained in:
parent
71be15629e
commit
ccf23a35b8
3 changed files with 42 additions and 54 deletions
|
@ -7,10 +7,6 @@ let
|
|||
|
||||
# Import mapping
|
||||
mapping = import ./../../mapping.nix;
|
||||
|
||||
meshUdpRange = "51000-${toString (51000 + builtins.head (
|
||||
builtins.sort (a: b: a > b) (
|
||||
lib.mapAttrsToList (name: node: node.id) nodes)))}";
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
|
@ -50,7 +46,7 @@ in
|
|||
tcp dport 22 accept
|
||||
|
||||
# Mesh
|
||||
udp dport ${meshUdpRange} accept
|
||||
udp dport 51820 accept
|
||||
|
||||
${if lib.elem myName mapping.bastion then ''
|
||||
# Mgmt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue