From 8e9d5b730b89ea7d8c9f42a122b131431c45c666 Mon Sep 17 00:00:00 2001 From: Random936 Date: Tue, 29 Oct 2024 20:58:17 -0700 Subject: [PATCH] Changed IPs for VMs and added tailscale config --- config/logging.nix | 2 +- config/media.nix | 9 +++++---- config/sampledb.nix | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config/logging.nix b/config/logging.nix index a209fdb..cc6a104 100644 --- a/config/logging.nix +++ b/config/logging.nix @@ -14,7 +14,7 @@ #networking.firewall.allowedTCPPorts = [ ]; networking.interfaces.ens18.ipv4.addresses = [ { - address = "192.168.100.8"; + address = "192.168.100.41"; prefixLength = 24; } ]; diff --git a/config/media.nix b/config/media.nix index 828f309..ee71011 100644 --- a/config/media.nix +++ b/config/media.nix @@ -14,7 +14,7 @@ networking.firewall.allowedTCPPorts = [ 80 443 32400 ]; networking.interfaces.enp6s18.ipv4.addresses = [ { - address = "192.168.100.5"; + address = "192.168.100.40"; prefixLength = 24; } ]; @@ -89,8 +89,9 @@ }; # Enable Tailscale - services.tailscale = { - enable = true; - useRoutingFeatures = "server"; + services.tailscale.enable = true; + boot.kernel.sysctl = { + "net.ipv4.ip_forward" = 1; + "net.ipv6.conf.all.forwarding" = 1; }; } diff --git a/config/sampledb.nix b/config/sampledb.nix index 0b17074..e295db8 100644 --- a/config/sampledb.nix +++ b/config/sampledb.nix @@ -14,7 +14,7 @@ networking.firewall.allowedTCPPorts = [ 80 443 32400 ]; networking.interfaces.ens18.ipv4.addresses = [ { - address = "192.168.100.7"; + address = "192.168.100.42"; prefixLength = 24; } ];