diff options
| author | tv <tv@krebsco.de> | 2026-12-03 03:07:37 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-03 03:07:37 +0000 |
| commit | 55ef33f951372b27df762bd6caebf0c1e09c637a (patch) | |
| tree | 6123d520ebad29054d8477f85a9f0eec7b327e8e | |
| parent | f15667dbd2b2c1ea3a45a957c78fae70d6dac745 (diff) | |
retiolum: configure hrm.nftables only
| -rw-r--r-- | configs/retiolum.nix | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/configs/retiolum.nix b/configs/retiolum.nix index 6e20ca0f..94c9f00c 100644 --- a/configs/retiolum.nix +++ b/configs/retiolum.nix @@ -65,6 +65,8 @@ in { # measured across the mesh, so paths that lose large packets don't # stall TCP. systemd.network.networks."40-tincr-retiolum".linkConfig.MTUBytes = "1377"; + hrm.nftables.input.internet.tcp = [ "tinc" ]; + hrm.nftables.input.internet.udp = [ "tinc" ]; } (lib.mkIf config.enstate.enable { enstate.types.${keyType}.validator = keyValidator; @@ -74,13 +76,5 @@ in { source = lib.mkDefault { secrets.key = "retiolum.ed25519_key.priv"; }; }; }) - (lib.mkIf (!config.hrm.nftables.enable) { - tv.iptables.input-internet-accept-tcp = [ "tinc" ]; - tv.iptables.input-internet-accept-udp = [ "tinc" ]; - }) - (lib.mkIf config.hrm.nftables.enable { - hrm.nftables.input.internet.tcp = [ "tinc" ]; - hrm.nftables.input.internet.udp = [ "tinc" ]; - }) ]; } |
