From 3ce409f5cf2523d7e613a4bc1d8c6758960d9b93 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 22 Jan 2025 15:38:11 +0300 Subject: [PATCH] Home: Remove v4 tunnel. --- host/x86_64-linux/home/Ipv4Socks.nix | 47 ---------------------------- 1 file changed, 47 deletions(-) delete mode 100644 host/x86_64-linux/home/Ipv4Socks.nix diff --git a/host/x86_64-linux/home/Ipv4Socks.nix b/host/x86_64-linux/home/Ipv4Socks.nix deleted file mode 100644 index eb3653b..0000000 --- a/host/x86_64-linux/home/Ipv4Socks.nix +++ /dev/null @@ -1,47 +0,0 @@ -# Use `nixos-container login ipv4` as root and empty pw. -{ __findFile, lib, ... }: -{ - networking.nat = { - enable = true; - externalInterface = "enp8s0"; - internalInterfaces = [ "ve-+" ]; - }; - - containers.ipv4 = { - autoStart = true; - enableTun = true; - privateNetwork = true; - hostAddress = "188.242.247.132"; - localAddress = "10.1.0.3"; - - config = - { ... }: - { - boot.kernel.sysctl = { - "net.ipv6.conf.all.disable_ipv6" = 1; - "net.ipv6.conf.default.disable_ipv6" = 1; - }; - - networking.firewall.extraCommands = '' - iptables -I INPUT -j ACCEPT -s 10.0.0.0/24 - ''; - - services.microsocks = { - enable = true; - disableLogging = true; - ip = "10.1.0.3"; - port = 1080; - }; - - boot.isContainer = true; - system.stateVersion = "24.11"; - networking = { - useHostResolvConf = lib.mkForce false; - nameservers = [ - "1.1.1.1" - "8.8.8.8" - ]; - }; - }; - }; -}