setup wireguard interface
This commit is contained in:
parent
ae8d689727
commit
67d7b6669f
@ -142,16 +142,20 @@
|
|||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Kind = "wireguard";
|
Kind = "wireguard";
|
||||||
Name = "wg0";
|
Name = "wg0";
|
||||||
|
MTUBytes = "1450";
|
||||||
};
|
};
|
||||||
wireguardConfig = {
|
wireguardConfig = {
|
||||||
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
PrivateKeyFile = "/run/keys/wireguard-privkey";
|
||||||
ListenPort = 9918;
|
#ListenPort = 9918;
|
||||||
};
|
};
|
||||||
wireguardPeers = [
|
wireguardPeers = [
|
||||||
{
|
{
|
||||||
PublicKey = "OhApdFoOYnKesRVpnYRqwk3pdM247j8PPVH5K7aIKX0=";
|
wireguardPeerConfig = {
|
||||||
AllowedIPs = ["fc00::1/64" "10.100.0.1"];
|
PublicKey = "t3+JkBfXI1uw8fa9P6JfxXJfTPm9cOHcgIN215UHg2g=";
|
||||||
Endpoint = "{set this to the server ip}:51820";
|
AllowedIPs = ["0.0.0.0/0" "::/0"];
|
||||||
|
Endpoint = "89.234.141.83";
|
||||||
|
PersistentKeepalive = 15;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -176,9 +180,8 @@
|
|||||||
"10-wg0" = {
|
"10-wg0" = {
|
||||||
matchConfig.Name = "wg0";
|
matchConfig.Name = "wg0";
|
||||||
address = [
|
address = [
|
||||||
"fe80::3/64"
|
"89.234.141.196/32"
|
||||||
"fc00::3/120"
|
"2a00:5881:8119:400::1/128"
|
||||||
"10.100.0.2/24"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"40-eno2" = {
|
"40-eno2" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user