aboutsummaryrefslogtreecommitdiff
path: root/profiles/core
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-20 20:42:27 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-20 20:43:32 -0700
commit552e62b8ae7f262a9246ba98142606512c018668 (patch)
tree4624c548e25082354591de613c3513931f281283 /profiles/core
parentbump sapi to 1.2.10 (diff)
downloadinfra-552e62b8ae7f262a9246ba98142606512c018668.tar.gz
initial configuration for fail2ban
We need to ensure the firewall is enabled and let's ensure that we open the port for SSH.
Diffstat (limited to 'profiles/core')
-rw-r--r--profiles/core/ssh.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/profiles/core/ssh.nix b/profiles/core/ssh.nix
index f8c899a..b4c8772 100644
--- a/profiles/core/ssh.nix
+++ b/profiles/core/ssh.nix
@@ -1,5 +1,7 @@
{ lib, ... }:
{
+ networking.firewall.allowedTCPPorts = [ 22 ];
+
services.openssh = {
enable = lib.mkDefault true;
settings = {