tangled
alpha
login
or
join now
koi.rip
/
dotfiles
0
fork
atom
my nixos dotfiles :3 (git.koi.rip mirror)
git.koi.rip/koi/dotfiles
linux
dotfiles
neovim
nixos
catppuccin
0
fork
atom
overview
issues
pulls
pipelines
base: update SSH security
koi.rip
2 months ago
6ac970af
db25b76a
+1
-5
2 changed files
expand all
collapse all
unified
split
modules
base
networking.nix
services
openssh.nix
-5
modules/base/networking.nix
···
42
42
for ip in "''${v6blocklist[@]}"; do
43
43
ensure_rule6 -s "$ip" -j DROP
44
44
done
45
45
-
46
46
-
ensure_rule -p tcp --dport 22 -m conntrack --ctstate NEW \
47
47
-
-m recent --name SSH --rsource --update --seconds 120 --hitcount 10 -j DROP
48
48
-
ensure_rule -p tcp --dport 22 -m conntrack --ctstate NEW \
49
49
-
-m recent --name SSH --rsource --set
50
45
'';
51
46
};
52
47
};
+1
modules/base/services/openssh.nix
···
3
3
enable = true;
4
4
openFirewall = true;
5
5
settings = {
6
6
+
LogLevel = "ERROR"; # haxerz OUT
6
7
PubkeyAuthentication = true;
7
8
PasswordAuthentication = false;
8
9
KbdInteractiveAuthentication = false;