I’m using Pop!_OS 20.04. Until now I’ve been using wireguard conf files that I set up manually with nmcli and that works fine, but I though I’d give the linux app a try, mainly to be able to quickly switch servers without needing to download a new conf file each time.
My issue is I have to set the wireguard connection MTU to 1400 on my network. With the default value of 1420, connections are always timing out and I can’t get any site loaded on Firefox.
Now, I can run ip link set
from terminal and change it after the app creates the proton0
interface, and that’s a workaround, but is there some way to change the MTU parameter for all connections?
Seems there is already a feature request open for this issue, please vote for it if it’s relevant for you as well. https://protonmail.uservoice.com/forums/932836-proton-vpn/suggestions/48509147-permanent-mtu-setting-for-wireguard-in-protonvpn
Well, in case anyone is interested, I found a way to workaround my problem.
I edited
../proton/vpn/backend/linux/networkmanager/protocol/wireguard/wireguard.py
. Addedmtu
property to theConfig
class, then at the end of_set_wireguard_properties
added this:# Added by RandomChain - setting the MTU logger.info(f'### RandomChain says: setting mtu to {wg_config.ipv4.mtu}') wireguard_config.set_property( NM.SETTING_WIREGUARD_MTU, wg_config.ipv4.mtu )
I know it’s ugly and hacky, but it works for me. I should probably open a bug to be able to properly change it from the app settings.