finish configuration for ssh
- iptables geoip whitelist for ssh - NOPASSWD for efibootmgr, allowing easy reboot into windows from laptop/phone - no fastfetch for remote shells
This commit is contained in:
14 files changed
+11896
-87
No files matched your search
@@ -20,4 +20,11 @@
|
||||
};
|
||||
startWhenNeeded = true;
|
||||
};
|
||||
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -D INPUT -p tcp --dport 22 -m set ! --match-set geo-whitelist src -j DROP
|
||||
${pkgs.ipset}/bin/ipset destroy geo-whitelist
|
||||
${pkgs.ipset}/bin/ipset restore -file /home/grey/nixos/assets/geo-whitelist.ipset
|
||||
iptables -I INPUT -p tcp --dport 22 -m set ! --match-set geo-whitelist src -j DROP
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user