Fix vpn configuration
This commit is contained in:
parent
747c637f80
commit
aaebb4bc19
4 changed files with 20 additions and 7 deletions
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
@ -7,4 +12,5 @@
|
|||
];
|
||||
|
||||
qois.loadbalancer.enable = true;
|
||||
qois.backplane-net.hosts.loadbalancers = lib.mkForce [ "cyprianspitz" ];
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ in
|
|||
in
|
||||
{
|
||||
enable = true;
|
||||
resolveLocalQueries = false;
|
||||
resolveLocalQueries = true;
|
||||
settings = {
|
||||
interface = "vms-nat";
|
||||
bind-interfaces = true;
|
||||
|
@ -85,6 +85,8 @@ in
|
|||
useRoutingFeatures = "server";
|
||||
authKeyFile = config.sops.secrets."tailscale/key".path;
|
||||
extraUpFlags = [
|
||||
"--timeout 60s"
|
||||
"--accept-dns=false"
|
||||
"--login-server=https://vpn.qo.is"
|
||||
"--advertise-exit-node"
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue