update firewall
This commit is contained in:
parent
9be2894ac6
commit
a456d25708
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue