forked from mirrors_public/oddlama_nix-config
feat(core): add nixos-nftables-firewall; and move some things from core/default.nix to more approriate locations
This commit is contained in:
parent
2e45d3f423
commit
12d840c7bf
9 changed files with 92 additions and 93 deletions
|
@ -102,9 +102,10 @@
|
|||
# The allowed ips of a server node are it's own addreses,
|
||||
# plus each external peer's addresses,
|
||||
# plus each client's addresses that is connected via that node.
|
||||
AllowedIPs =
|
||||
snCfg.addresses
|
||||
++ attrValues snCfg.server.externalPeers; # TODO ++ map (n: (wgCfgOf n).addresses) snCfg.ourClientNodes;
|
||||
AllowedIPs = snCfg.addresses;
|
||||
# TODO this needed? or even wanted at all?
|
||||
# ++ attrValues snCfg.server.externalPeers;
|
||||
# ++ map (n: (wgCfgOf n).addresses) snCfg.ourClientNodes;
|
||||
Endpoint = "${snCfg.server.host}:${toString snCfg.server.port}";
|
||||
};
|
||||
}) (filterSelf associatedServerNodes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue