From a456d257083be829f4ac0e5e1b57f8c0607156bf Mon Sep 17 00:00:00 2001 From: leonvita91 Date: Sat, 27 Aug 2022 22:03:10 +0100 Subject: [PATCH] update firewall --- hosts/leon/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index 311d1463..7118e597 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -134,7 +134,7 @@ in networking.firewall = { allowedTCPPorts = [ 5000 22 53 80 8080 ]; - allowedUDPPorts = [ 5000 22 53 80 8080 8900 8900]; + allowedUDPPorts = [ 5000 22 53 80 8080 19800]; }; @@ -203,18 +203,7 @@ networking.wireguard.interfaces = { #VPN Port. listenPort = 19800; - #----------------------Start-Routing---------------------------- - #postSetup = '' - # ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.10.100.1/24 -o pub -j MASQUERADE - #''; - - # This undoes the above command - #postShutdown = '' - # ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.10.100.1/24 -o pub -j MASQUERADE - #''; - #----------------------End-Routing---------------------------- - - # Path to the private key file. + # Path to the private key file. # privateKeyFile = "/etc/wireguard/privatekey"; -- 2.42.0