aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-08-25 18:18:54 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-08-25 18:18:59 +0200
commitab06d1cd703dd1e9bfd093b84e2218496b286134 (patch)
treee5c3f57fe0dd9e9345df4ae6a5604210ad8d1233
parent482d52f492d93bf58cf98aa01b6852ceeadaf58f (diff)
tower: expose ssh over tailscale on port 22
-rw-r--r--hosts/tower/ssh.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/hosts/tower/ssh.nix b/hosts/tower/ssh.nix
index 13da162..46e872b 100644
--- a/hosts/tower/ssh.nix
+++ b/hosts/tower/ssh.nix
@@ -2,7 +2,10 @@
{
services.openssh = {
enable = true;
- ports = [ 52222 ];
+ ports = [
+ 52222
+ 22
+ ];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
@@ -12,5 +15,8 @@
};
};
- networking.firewall.allowedTCPPorts = [ 52222 ];
+ networking.firewall.interfaces = {
+ eno1.allowedTCPPorts = [ 52222 ];
+ tailscale0.allowedTCPPorts = [ 22 ];
+ };
}