117 current 2025-10-08 19:07:36 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -44,24 +44,5 @@ in
|
||||
sops.secrets = {
|
||||
"vpncon_mex_config" = { owner = "root"; group = "root"; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
vpnNamespaces.<name> = { # The name is limited to 7 characters
|
||||
enable = true;
|
||||
wireguardConfigFile = config.sops.secrets."vpncon_mex_config".path;
|
||||
accessibleFrom = [
|
||||
"<ip or subnet>"
|
||||
];
|
||||
portMappings = [{
|
||||
from = <port on host>;
|
||||
to = <port in VPN network namespace>;
|
||||
protocol = "<transport protocol>"; # protocol = "tcp"(default), "udp", or "both"
|
||||
}];
|
||||
openVPNPorts = [{
|
||||
port = <port to access through VPN interface>;
|
||||
protocol = "<transport protocol>"; # protocol = "tcp"(default), "udp", or "both"
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user