update firewall
This commit is contained in:
parent
9be2894ac6
commit
a456d25708
|
@ -134,7 +134,7 @@ in
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 5000 22 53 80 8080 ];
|
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.
|
#VPN Port.
|
||||||
listenPort = 19800;
|
listenPort = 19800;
|
||||||
|
|
||||||
#----------------------Start-Routing----------------------------
|
# Path to the private key file.
|
||||||
#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.
|
|
||||||
#
|
#
|
||||||
privateKeyFile = "/etc/wireguard/privatekey";
|
privateKeyFile = "/etc/wireguard/privatekey";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user