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: ssh rate limiting
koi.rip
2 months ago
b5b2b850
a68a81db
+9
-1
1 changed file
expand all
collapse all
unified
split
modules
base
networking.nix
+9
-1
modules/base/networking.nix
···
1
1
{
2
2
networking = {
3
3
networkmanager.enable = true;
4
4
-
firewall.enable = true;
4
4
+
firewall = {
5
5
+
enable = true;
6
6
+
extraCommands = ''
7
7
+
iptables -I INPUT 1 -p tcp --dport 22 -m conntrack --ctstate NEW \
8
8
+
-m recent --name SSH --rsource --update --seconds 120 --hitcount 10 -j DROP
9
9
+
iptables -I INPUT 2 -p tcp --dport 22 -m conntrack --ctstate NEW \
10
10
+
-m recent --name SSH --rsource --set
11
11
+
'';
12
12
+
};
5
13
};
6
14
}