From 840c68524f31c16f5f91b5511e55537d4ff2c2b8 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 11 Dec 2025 14:31:20 +0000 Subject: [PATCH] Add alternative IP address and SSH port I was trying to use it to get around public wifi firewalls --- host/nocix/amd-legacy-sexcore/network.nix | 3 +++ modules/system/openssh.nix | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/host/nocix/amd-legacy-sexcore/network.nix b/host/nocix/amd-legacy-sexcore/network.nix index fa55501..3b17572 100644 --- a/host/nocix/amd-legacy-sexcore/network.nix +++ b/host/nocix/amd-legacy-sexcore/network.nix @@ -22,6 +22,9 @@ ipv4.addresses = [{ address = "63.141.227.154"; prefixLength = 29; + } { + address = "63.141.227.155"; + prefixLength = 29; }]; ipv6.addresses = [{ address = "2604:4300:a:88::2"; diff --git a/modules/system/openssh.nix b/modules/system/openssh.nix index 0fa98b8..c442848 100644 --- a/modules/system/openssh.nix +++ b/modules/system/openssh.nix @@ -3,7 +3,17 @@ { services.openssh = { enable = true; - ports = [ 22 16652 ]; + # ports = [ 22 16652 ]; + listenAddresses = [{ + addr = "63.141.227.154"; + port = 22; + } { + addr = "63.141.227.154"; + port = 16652; + } { + addr = "63.141.227.155"; + port = 443; + }]; }; }