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

all 16 comments

sorted by: hot top controversial new old
[–] 14 points 10 months ago (1 child)

Some VPNs allow you to select apps that are affected or not (proton does). That might allow you to route discord only via a chosen country.

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 10 months ago (1 child)

    Not the Linux version unfortunately

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 10 months ago (1 child)

    It does (not sure how well), but it seems to be a paid feature. Found under Settings -> Split tunneling.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 10 months ago (1 child)

    Did you look into network namespaces? With these you should be able to dedicate a namespace for the VPN adapter and then move discord into it, at least with wireguard it works flawlessly.

  • source
  • hideshow 2 child comments
  • [–] 2 points 10 months ago* (last edited 10 months ago) (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 10 months 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/…

  • source
  • parent
  • [–] 4 points 10 months ago (1 child)

    Could you run Tor and use the discord web browser version?

  • source
  • hideshow 2 child comments
  • [–] 2 points 10 months ago
    [–] 1 point 10 months ago

    Try zapret, find settings that work for you on it.

  • source
  • [–] 1 point 10 months ago

    Might want to look into split tunneling.

  • source
  • [–] 1 point 10 months ago

    i usually run wireproxy with cloudflare warp (wgcf) for this purpose

    zapret might also work

  • source