Skip to content

Commit

Permalink
[k] Enable fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
George Macon committed Jul 19, 2024
1 parent 9a3fb8c commit 0001dc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion potassium/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{ config, ... }: {
{ config, pkgs, ... }: {
system.stateVersion = "23.11";
fileSystems."/srv" = {
device = "/dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01";
options = [ "discard" "nofail" "noatime" ];
};
services.openssh.ports = [ 46409 ];
services.fail2ban = {
enable = true;
banaction = "iptables-ipset";
extraPackages = [ pkgs.ipset ];
};

# Backups
age.secrets.tarsnapKey.file = ../secrets/tarsnap-k.key.age;
Expand Down

0 comments on commit 0001dc0

Please sign in to comment.