From 5b461cc0da254936a53ffcc98dc8295c9f25f615 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Thu, 4 Jul 2024 07:06:32 +0200 Subject: [PATCH] vps1 only ssh on tailscale --- proxy/configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/proxy/configuration.nix b/proxy/configuration.nix index c33ae22..95782ea 100644 --- a/proxy/configuration.nix +++ b/proxy/configuration.nix @@ -19,8 +19,14 @@ in # tailscale services.tailscale.enable = true; - # fail2ban + # fail2ban/ssh services.fail2ban.enable = true; + services.openssh.listenAddresses = [ + { + addr = "100.96.189.104"; + port = 22; + } + ]; # nginx reverse proxy services.nginx = {