Compare commits
No commits in common. "e8e4c4b3115c080b527c1c85e27b25ac2c615727" and "ae8d6897271cd35fc2d8ae4ebdfc58e5acadce65" have entirely different histories.
e8e4c4b311
...
ae8d689727
@ -142,21 +142,16 @@
|
|||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Kind = "wireguard";
|
Kind = "wireguard";
|
||||||
Name = "wg0";
|
Name = "wg0";
|
||||||
MTUBytes = "1450";
|
|
||||||
};
|
};
|
||||||
wireguardConfig = {
|
wireguardConfig = {
|
||||||
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
||||||
FirewallMark = 51820;
|
ListenPort = 9918;
|
||||||
};
|
};
|
||||||
wireguardPeers = [
|
wireguardPeers = [
|
||||||
{
|
{
|
||||||
wireguardPeerConfig = {
|
PublicKey = "OhApdFoOYnKesRVpnYRqwk3pdM247j8PPVH5K7aIKX0=";
|
||||||
Endpoint = "89.234.141.83:8095";
|
AllowedIPs = ["fc00::1/64" "10.100.0.1"];
|
||||||
PublicKey = "t3+JkBfXI1uw8fa9P6JfxXJfTPm9cOHcgIN215UHg2g=";
|
Endpoint = "{set this to the server ip}:51820";
|
||||||
PresharedKeyFile = "/run/keys/wireguard-psk.key";
|
|
||||||
AllowedIPs = ["0.0.0.0/0" "::/0"];
|
|
||||||
PersistentKeepalive = 15;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -181,45 +176,10 @@
|
|||||||
"10-wg0" = {
|
"10-wg0" = {
|
||||||
matchConfig.Name = "wg0";
|
matchConfig.Name = "wg0";
|
||||||
address = [
|
address = [
|
||||||
"89.234.141.196/32"
|
"fe80::3/64"
|
||||||
"2a00:5881:8119:400::1/128"
|
"fc00::3/120"
|
||||||
|
"10.100.0.2/24"
|
||||||
];
|
];
|
||||||
# routingPolicyRules = [
|
|
||||||
# {
|
|
||||||
# routingPolicyRuleConfig = {
|
|
||||||
# FirewallMark = "51820";
|
|
||||||
# InvertRule = true;
|
|
||||||
# Table = "51820";
|
|
||||||
# Priority = "10";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# routingPolicyRuleConfig = {
|
|
||||||
# To = "10.0.0.0/8";
|
|
||||||
# Priority = "9";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# routingPolicyRuleConfig = {
|
|
||||||
# To = "192.168.0.0/16";
|
|
||||||
# Priority = "9";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# routingPolicyRuleConfig = {
|
|
||||||
# To = "89.234.141.83/32";
|
|
||||||
# Priority = "5";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# routes = [
|
|
||||||
# {
|
|
||||||
# routeConfig = {
|
|
||||||
# Destination = "0.0.0.0/0";
|
|
||||||
# Table = 51820;
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
};
|
};
|
||||||
"40-eno2" = {
|
"40-eno2" = {
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user