From 2448fe7d20f0b7d875e53e521ea45fd744ddb731 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 2 Oct 2022 14:24:32 +0800 Subject: [PATCH] aux: use 192.168.1.x on LAN match default ARTIQ core device IPs --- aux-etc-nixos/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aux-etc-nixos/configuration.nix b/aux-etc-nixos/configuration.nix index 734f3ec..d0dfbc2 100644 --- a/aux-etc-nixos/configuration.nix +++ b/aux-etc-nixos/configuration.nix @@ -40,7 +40,7 @@ in }; networking.interfaces."${netifLan}" = { ipv4.addresses = [{ - address = "192.168.14.1"; + address = "192.168.1.1"; prefixLength = 24; }]; }; @@ -70,13 +70,13 @@ in interface=${netifWifi} interface=${netifLan} bind-interfaces - dhcp-range=interface:${netifLan},192.168.14.81,192.168.14.254,24h + dhcp-range=interface:${netifLan},192.168.1.81,192.168.1.254,24h dhcp-range=interface:${netifWifi},192.168.15.10,192.168.15.254,24h no-resolv # Static IPv4s to make port redirections work - dhcp-host=chiron,192.168.14.201 + dhcp-host=chiron,192.168.1.201 # 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 @@ -89,7 +89,7 @@ in externalInterface = netifWan; internalInterfaces = [ netifLan netifWifi ]; forwardPorts = [ - { sourcePort = 2201; destination = "192.168.14.201:22"; proto = "tcp"; } + { sourcePort = 2201; destination = "192.168.1.201:22"; proto = "tcp"; } ]; extraCommands = '' iptables -w -N block-lan-from-wifi