From f7037fcf9b9dcdde0b1d46eb744ef6b64e1dbafb Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 23 Nov 2024 18:53:46 +0530 Subject: kay/router: switch to more obscure subnet --- os/kay/modules/router.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/os/kay/modules/router.nix b/os/kay/modules/router.nix index 64c653c..59ab281 100644 --- a/os/kay/modules/router.nix +++ b/os/kay/modules/router.nix @@ -6,11 +6,14 @@ gponPrefix = 24; lanInterface = "enp8s0f3u1"; - subnet = "10.0.0.0"; + subnet = "192.168.43.0"; prefix = 24; - host = "10.0.0.1"; - leaseRangeStart = "10.0.0.100"; - leaseRangeEnd = "10.0.0.254"; + host = "192.168.43.1"; + leaseRangeStart = "192.168.43.100"; + leaseRangeEnd = "192.168.43.254"; + + wapMac = "40:86:cb:d7:40:49"; + wapIp = "192.168.43.2"; in { imports = [ ./wireguard.nix @@ -58,6 +61,7 @@ in { services.dnsmasq.settings = { dhcp-range = [ "${leaseRangeStart},${leaseRangeEnd}" ]; + dhcp-host= "${wapMac},${wapIp}"; interface = [ lanInterface ]; }; } -- cgit v1.2.3