Hi I'm using wireguard with /etc/conf.d/net. I originally had problems with wireguard's default MTU size too big for my environment so I tried to figure out how to get this set .... and found some problems.... # client config (server has 10.222.227.1) config_wgvs="10.222.227.22/24" wireguard_wgvs="/etc/wireguard/wgvs.conf" 1) putting lines like the following in wgvs.conf Address = 10.222.227.22 PostUp = blabla MTU = 1360 --> result all in parsing errors when trying to start the wgvs interface (/etc/init.d/net.wgvs start) 2) putting the following line in /etc/conf.d/net mtu_wgvs="1360" --> results in nothing (because the interface seems not yet totally up) /etc/init.d/net.wgvs restart * Caching service dependencies ... [ ok ] * Bringing down interface wgvs * Removing WireGuard interface wgvs ... [ ok ] * Bringing up interface wgvs Cannot find device "wgvs" <---- MTU size setting.... * Creating WireGuard interface wgvs ... [ ok ] * Configuring WireGuard interface wgvs ... [ ok ] * 10.222.225.27/24 ... [ ok ] I solved it by using the postup() workaround way - but this is far away from elegance: postup() { # for wireguard client [[ ${IFACE} == "wgvs" ]] && ip link set wgvs mtu 1360 return }
*** This bug has been marked as a duplicate of bug 678184 ***