TITAN/fbi-downloader: limit wgupload MTU to 1200

This commit is contained in:
Max Headroom 2022-06-07 23:17:55 +02:00
parent a7bf8ca4b7
commit cd8885bf96

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, ... }:
{ {
age.secrets = { age.secrets = {
@ -56,6 +56,7 @@
ips = [ "10.150.0.2/24" ]; ips = [ "10.150.0.2/24" ];
privateKeyFile = config.age.secrets.wireguard-key-upload.path; privateKeyFile = config.age.secrets.wireguard-key-upload.path;
allowedIPsAsRoutes = true; allowedIPsAsRoutes = true;
postSetup = "${pkgs.iproute2}/bin/ip link set mtu 1200 wgupload";
peers = [ peers = [
{ {
publicKey = "apKXnlMtcOe8WqCVXJAXEjzppN+qTmESlt0NjMTaclQ="; publicKey = "apKXnlMtcOe8WqCVXJAXEjzppN+qTmESlt0NjMTaclQ=";