From dbc9f4c68d328c9b44e6acd3819de8453c40a114 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 10 Dec 2022 19:17:22 +0800 Subject: [PATCH] remote setup --- aux-etc-nixos/configuration.nix | 2 ++ nixbld-etc-nixos/named/m-labs.hk | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/aux-etc-nixos/configuration.nix b/aux-etc-nixos/configuration.nix index d420a82..fb9ff2f 100644 --- a/aux-etc-nixos/configuration.nix +++ b/aux-etc-nixos/configuration.nix @@ -106,6 +106,7 @@ in # Static IPv4s to make port redirections work dhcp-host=chiron,192.168.1.201 + dhcp-host=old-nixbld,192.168.1.202 # Google can't do DNS geolocation correctly and slows down websites of everyone using # their shitty font cloud hosting. In HK, you sometimes get IPs behind the GFW that you @@ -119,6 +120,7 @@ in internalInterfaces = [ netifLan netifWifi ]; forwardPorts = [ { sourcePort = 2201; destination = "192.168.1.201:22"; proto = "tcp"; } + { sourcePort = 2202; destination = "192.168.1.202:22"; proto = "tcp"; } ]; extraCommands = '' iptables -w -N block-lan-from-wifi diff --git a/nixbld-etc-nixos/named/m-labs.hk b/nixbld-etc-nixos/named/m-labs.hk index 37c65ed..f20ff74 100644 --- a/nixbld-etc-nixos/named/m-labs.hk +++ b/nixbld-etc-nixos/named/m-labs.hk @@ -1,7 +1,7 @@ $TTL 7200 @ SOA 42-200-147-171.static.imsbiz.com. sb.m-labs.hk. ( - 2022120602 + 2022121001 7200 3600 86400 @@ -42,7 +42,7 @@ rpi-2 AAAA 2001:470:f821:1:ba27:ebff:fef0:e9e6 rpi-3 AAAA 2001:470:f821:1:dea6:32ff:fe14:fd67 rpi-4 AAAA 2001:470:f821:1:dea6:32ff:fe14:fce9 rpi-ext AAAA 2001:470:f821:1:dea6:32ff:fe95:2fcf -zeus AAAA 2001:470:f821:1:9a72:a418:5466:0b9a -hera AAAA 2001:470:f821:1:8406:1390:2110:5825 +chiron AAAA 2001:470:f891:1:7f02:9ebf:bee9:3dc7 +old-nixbld AAAA 2001:470:f891:1:a07b:f49a:a4ef:aad9 aux A 94.190.212.123