Update modules/nixos/system/network/wireguard/default.nix
Corrected MTU
This commit is contained in:
parent
a0e210880c
commit
8fafe65aec
@ -1,18 +1,19 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
networking.wireguard = {
|
networking.wireguard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
ips = [ config.hostcfg.net.wg.ip4 config.hostcfg.net.wg.ip6 ];
|
ips = [ config.hostcfg.net.wg.ip4 config.hostcfg.net.wg.ip6 ];
|
||||||
privateKeyFile = config.hostcfg.net.wg.pk;
|
privateKeyFile = config.hostcfg.net.wg.pk;
|
||||||
listenPort = 1515;
|
listenPort = 1515;
|
||||||
peers = [{
|
mtu = 1340;
|
||||||
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];
|
peers = [{
|
||||||
endpoint = "vpn.helcel.net:1515";
|
allowedIPs = [ "10.10.1.0/24" "fd10:10:10::0/64" ];
|
||||||
publicKey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q=";
|
endpoint = "vpn.helcel.net:1515";
|
||||||
persistentKeepalive = 30;
|
publicKey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q=";
|
||||||
}];
|
persistentKeepalive = 30;
|
||||||
};
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user