forked from mirrors_public/oddlama_nix-config
feat(ward): open kanidm port only for sentinel
This commit is contained in:
parent
c1fe238c75
commit
df2657bb1c
5 changed files with 20 additions and 5 deletions
|
@ -76,12 +76,26 @@ in {
|
|||
|
||||
networking.nftables.firewall = {
|
||||
zones = lib.mkForce {
|
||||
local-vms.interfaces = ["local-vms"];
|
||||
#local-vms.interfaces = ["local-vms"];
|
||||
proxy-sentinel.interfaces = ["proxy-sentinel"];
|
||||
sentinel = {
|
||||
parent = "proxy-sentinel";
|
||||
ipv4Addresses = [nodes.sentinel.config.extra.wireguard.proxy-sentinel.ipv4];
|
||||
ipv6Addresses = [nodes.sentinel.config.extra.wireguard.proxy-sentinel.ipv6];
|
||||
};
|
||||
};
|
||||
|
||||
#rules = lib.mkForce {
|
||||
# local-vms-to-local = {
|
||||
# from = ["local-vms"];
|
||||
# to = ["local"];
|
||||
# allowedTCPPorts = [8300];
|
||||
# };
|
||||
#};
|
||||
|
||||
rules = lib.mkForce {
|
||||
local-vms-to-local = {
|
||||
from = ["local-vms"];
|
||||
sentinel-to-local = {
|
||||
from = ["sentinel"];
|
||||
to = ["local"];
|
||||
allowedTCPPorts = [8300];
|
||||
};
|
||||
|
|
|
@ -139,6 +139,7 @@ in {
|
|||
renew-timer = 1000;
|
||||
rebind-timer = 2000;
|
||||
interfaces-config = {
|
||||
# TODO why does this bind other macvtaps?
|
||||
interfaces = ["lan-self"];
|
||||
service-sockets-max-retries = -1;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue