Adapt Wireguard configuration to upstream changes
This commit is contained in:
parent
907e108f8c
commit
6eb9f538c5
|
@ -78,11 +78,9 @@ in {
|
||||||
FirewallMark = 34952;
|
FirewallMark = 34952;
|
||||||
};
|
};
|
||||||
wireguardPeers = [{
|
wireguardPeers = [{
|
||||||
wireguardPeerConfig = {
|
|
||||||
PublicKey = "GN8lqPBZYOulh6xD4GhkoEWI65HMMCpSxJSH5871YnU=";
|
PublicKey = "GN8lqPBZYOulh6xD4GhkoEWI65HMMCpSxJSH5871YnU=";
|
||||||
AllowedIPs = [ "0.0.0.0/0" ];
|
AllowedIPs = [ "0.0.0.0/0" ];
|
||||||
Endpoint = "coolneng.duckdns.org:1194";
|
Endpoint = "coolneng.duckdns.org:1194";
|
||||||
};
|
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
systemd.network.networks."wg0" = {
|
systemd.network.networks."wg0" = {
|
||||||
|
@ -96,19 +94,15 @@ in {
|
||||||
MulticastDNS = "yes";
|
MulticastDNS = "yes";
|
||||||
};
|
};
|
||||||
routingPolicyRules = [{
|
routingPolicyRules = [{
|
||||||
routingPolicyRuleConfig = {
|
|
||||||
FirewallMark = 34952;
|
FirewallMark = 34952;
|
||||||
InvertRule = true;
|
InvertRule = true;
|
||||||
Table = 1000;
|
Table = 1000;
|
||||||
Priority = 10;
|
Priority = 10;
|
||||||
};
|
|
||||||
}];
|
}];
|
||||||
routes = [{
|
routes = [{
|
||||||
routeConfig = {
|
|
||||||
Gateway = "10.8.0.1";
|
Gateway = "10.8.0.1";
|
||||||
GatewayOnLink = true;
|
GatewayOnLink = true;
|
||||||
Table = 1000;
|
Table = 1000;
|
||||||
};
|
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue