Discord got banned where I live. I’m trying to find a way to route Discord to a specific proxy, or in other words warpring it around a VPN. I do not want to run a VPN system wide as this will significantly decrease internet speed, and also could affect connectivity in many games. Anyone has an effective way to do this? I’m running Bazzite on my system, and I use Vesktop as the Discord client, which is a flatpak. Any help is appreciated

  • WIPocket@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 days ago

    Do you have any tool to help with that? Ive set this up in the past, but it was pretty hands-on namespacing to get it to work rootless.

    Edit: For completeness, here is a script similar to what I use.

    • trillian@feddit.org
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 days ago

      I am not sure if this is helpful but I just created a systemd unit that sets up the network namespace in the background. Then, as I use nixos, I add the wireguard VPN to nix and with networking.wireguard.interface.name.interfaceNamespace you can then move it into the container. For running applications I cannot really comment because I have only one service making use of the VPN which runs inside a NixOS container for which the namespace can be configured with --network-namespace-path=/run/netns/…