In the end, Razputin, aren’t we all just dogs playing poker?

  • 1 Post
  • 2 Comments
Joined 2Y ago
cake
Cake day: Jun 12, 2023

help-circle
rss

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. Added mtu property to the Config 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.


Changing Wireguard connection MTU on Linux app
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?
fedilink