From ac5851252a15875bc88d8ae830cb51748f54eed9 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 24 Nov 2024 15:36:30 +0530 Subject: [PATCH] bifrost, wynne: change forgejo ssh port --- hosts/bifrost/network/firewall.nix | 2 +- hosts/wynne/services/apps/forgejo.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/bifrost/network/firewall.nix b/hosts/bifrost/network/firewall.nix index 8ecca5b..9d5bab6 100644 --- a/hosts/bifrost/network/firewall.nix +++ b/hosts/bifrost/network/firewall.nix @@ -7,7 +7,7 @@ _: { table ip nat { chain PREROUTING { type nat hook prerouting priority dstnat; - iifname ens3 tcp dport 22 dnat to 10.10.10.13:2222 + iifname ens3 tcp dport 69 dnat to 10.10.10.13:6969 } chain POSTROUTING { type nat hook postrouting priority srcnat; diff --git a/hosts/wynne/services/apps/forgejo.nix b/hosts/wynne/services/apps/forgejo.nix index ad96c69..37015e6 100644 --- a/hosts/wynne/services/apps/forgejo.nix +++ b/hosts/wynne/services/apps/forgejo.nix @@ -52,8 +52,8 @@ in DISABLE_SSH = false; START_SSH_SERVER = true; BUILTIN_SSH_SERVER_USER = "git"; - SSH_PORT = 22; - SSH_LISTEN_PORT = 2222; + SSH_PORT = 69; + SSH_LISTEN_PORT = 6969; SSH_LISTEN_HOST = "10.10.10.13"; HTTP_ADDR = "10.10.10.13"; HTTP_PORT = 3000;