aboutsummaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-30 18:26:27 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-30 18:26:27 -0800
commit20e3cee429e52e04dca4589a659252ca23181574 (patch)
tree605000c471bc9b50e674c89082fcd161f7f339d2 /profiles
parentdon't ban local network (diff)
downloadinfra-20e3cee429e52e04dca4589a659252ca23181574.tar.gz
don't penalize local network
Diffstat (limited to 'profiles')
-rw-r--r--profiles/server.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/profiles/server.nix b/profiles/server.nix
index 5c5cacf..d950b67 100644
--- a/profiles/server.nix
+++ b/profiles/server.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ lib, ... }:
{
boot.tmp.cleanOnBoot = true;
@@ -43,5 +43,9 @@
type = "ed25519";
}
];
+ # https://man.openbsd.org/sshd_config.5#PerSourcePenaltyExemptList
+ settings.PerSourcePenaltyExemptList = lib.strings.concatStringsSep "," [
+ "192.168.1.0/24"
+ ];
};
}