Route IPv6 traffic via Wireguard
This commit is contained in:
parent
56f125040d
commit
e970b4b18b
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user