From 6c5d103e1284be7fa588d56a9acd62d79f8b7df6 Mon Sep 17 00:00:00 2001 From: leonvita91 Date: Thu, 25 Aug 2022 23:32:04 +0100 Subject: [PATCH] changing routing from serv to pub --- hosts/leon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index ac94dadd..f790f21c 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -101,12 +101,12 @@ in # For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients #----------------------Start-Routing---------------------------- postSetup = '' - ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.11.1/24 -o pub -j MASQUERADE ''; # This undoes the above command postShutdown = '' - ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o serv -j MASQUERADE + ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.11.1/24 -o pub -j MASQUERADE ''; #----------------------End-Routing----------------------------