update firewall #49

Merged
astro merged 1 commits from :leon-network into master 2022-08-28 00:55:42 +02:00
1 changed files with 2 additions and 13 deletions

View File

@ -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";