Changed OpenConnect listening port

This commit is contained in:
Illia Chub 2021-01-28 03:54:53 +02:00
parent 530ca13812
commit 93df0021c4

View file

@ -59,7 +59,7 @@ makeConf() {
hostName = "$(hostname)"; hostName = "$(hostname)";
firewall = { firewall = {
allowedTCPPorts = lib.mkForce [ 22 25 80 143 443 587 8443 ]; allowedTCPPorts = lib.mkForce [ 22 25 80 143 443 587 8443 ];
allowedUDPPorts = lib.mkForce [ 443 ]; allowedUDPPorts = lib.mkForce [ 8443 ];
}; };
}; };
time.timeZone = "Europe/Uzhgorod"; time.timeZone = "Europe/Uzhgorod";
@ -355,7 +355,6 @@ EOF
forceSSL = true; forceSSL = true;
}; };
"vpn.$DOMAIN" = { "vpn.$DOMAIN" = {
listen = [{ addr = "0.0.0.0"; port = 8443; ssl = true; }];
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
@ -685,8 +684,8 @@ socket-file = /var/run/ocserv-socket
auth = "pam" auth = "pam"
tcp-port = 443 tcp-port = 8443
udp-port = 443 udp-port = 8443
server-cert = /var/lib/acme/vpn.$DOMAIN/fullchain.pem server-cert = /var/lib/acme/vpn.$DOMAIN/fullchain.pem
server-key = /var/lib/acme/vpn.$DOMAIN/key.pem server-key = /var/lib/acme/vpn.$DOMAIN/key.pem