From 9dba2b3b6ebaad7438729e62b2584bdf4b1361b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 20 Feb 2025 20:45:10 +0200 Subject: [PATCH] Remove: NAT64 --- machine-confs/nat64.nix | 12 ----------- services/nat64.nix | 47 ----------------------------------------- 2 files changed, 59 deletions(-) delete mode 100644 machine-confs/nat64.nix delete mode 100644 services/nat64.nix diff --git a/machine-confs/nat64.nix b/machine-confs/nat64.nix deleted file mode 100644 index b68b8e8..0000000 --- a/machine-confs/nat64.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ ... }: -{ - networking.hostName = "nat64"; - - imports = [ - ../base.nix - ../services/nat64.nix - ]; - - # HARDWARE SPECIFIC - services.qemuGuest.enable = true; -} diff --git a/services/nat64.nix b/services/nat64.nix deleted file mode 100644 index a9646ea..0000000 --- a/services/nat64.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ ... }: -{ - networking = { - jool = { - enable = true; - nat64.default = { - global.pool6 = "64:ff9b::/96"; # Default value made explicit for clarity - - # Port forwarding - bib = [ - { - # ExoPlaSim WireGuard - "protocol" = "UDP"; - "ipv4 address" = "192.168.1.3#51821"; - "ipv6 address" = "fd08:d473:bcca:1:210:3292:4922:b9aa#51821"; - } - ]; - - pool4 = [ - # Ports for static BIB entries - { - protocol = "UDP"; - prefix = "192.168.1.3/32"; - "port range" = "51821"; - } - - # Port ranges for dynamic translation - { - protocol = "TCP"; - prefix = "192.168.1.3/32"; - "port range" = "61001-65535"; - } - { - protocol = "UDP"; - prefix = "192.168.1.3/32"; - "port range" = "61001-65535"; - } - { - protocol = "ICMP"; - prefix = "192.168.1.3/32"; - "port range" = "61001-65535"; - } - ]; - }; - }; - }; -}