Route IPv6 traffic via Wireguard

This commit is contained in:
coolneng 2025-04-14 19:21:23 +02:00
parent 56f125040d
commit e970b4b18b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57

View File

@ -87,8 +87,11 @@ in
wireguardPeers = [ wireguardPeers = [
{ {
PublicKey = "GN8lqPBZYOulh6xD4GhkoEWI65HMMCpSxJSH5871YnU="; PublicKey = "GN8lqPBZYOulh6xD4GhkoEWI65HMMCpSxJSH5871YnU=";
AllowedIPs = [ "0.0.0.0/0" ]; AllowedIPs = [
Endpoint = "coolneng.duckdns.org:1194"; "0.0.0.0/0"
"::0"
];
Endpoint = "psydnd.org:1194";
} }
]; ];
}; };
@ -96,8 +99,14 @@ in
matchConfig.Name = "wg0"; matchConfig.Name = "wg0";
linkConfig.ActivationPolicy = "manual"; linkConfig.ActivationPolicy = "manual";
networkConfig = { networkConfig = {
Address = "10.8.0.2/32"; Address = [
DNS = "10.8.0.1"; "10.8.0.2/32"
"fd00::2/128"
];
DNS = [
"10.8.0.1"
"fd00::2"
];
DNSDefaultRoute = true; DNSDefaultRoute = true;
}; };
routingPolicyRules = [ routingPolicyRules = [