update firewall

This commit is contained in:
Leon Vita 2022-08-27 22:03:10 +01:00
parent 9be2894ac6
commit a456d25708
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";