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
16 Comments
wth@sh.itjust.works · 14 pts · 317d
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.
joseplinux@lemmy.zip · 2 pts · 317d
Not the Linux version unfortunately
WIPocket@lemmy.world · 3 pts · 317d
It does (not sure how well), but it seems to be a paid feature. Found under Settings -> Split tunneling.
DrDystopia@lemy.lol · 1 pts · 317d
I don't see it, care to elaborate?
WIPocket@lemmy.world · 3 pts · 317d
I found it in the settings:
Under "Features":
DrDystopia@lemy.lol · 1 pts · 315d
Thanks, I need to have another look then.
trillian@feddit.org · 5 pts · 317d
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.
WIPocket@lemmy.world · 2 pts · 317d
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 · 1 pts · 317d
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.interfaceNamespaceyou 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/…Zen_Shinobi@lemmy.world · 4 pts · 317d
Could you run Tor and use the discord web browser version?
joseplinux@lemmy.zip · 4 pts · 317d
If all else fails, I'll probably end up doing just that, running discord inside a browser with a VPN extension
boredsquirrel@slrpnk.net · 2 pts · 317d
Try oniux for that, exactly what you need
Otherwise look into oniux and how to replace arti with wireguare/shadowsocks/xray/amneziawg
boredsquirrel@slrpnk.net · 2 pts · 317d
https://www.procustodibus.com/blog/2023/04/wireguard-netns-for-specific-apps/
https://volatilesystems.org/wireguard-in-a-separate-linux-network-namespace.html
https://github.com/dadevel/wg-netns
https://www.ismailzai.com/blog/creating-wireguard-jails-with-linux-network-namespace
On NixOS:
https://vtimofeenko.com/posts/wireguard-namespace-flake/
One of these should work
hexagonwin@lemmy.sdf.org · 1 pts · 317d
i usually run wireproxy with cloudflare warp (wgcf) for this purpose
zapret might also work
CaptainBasculin@lemmy.bascul.in · 1 pts · 317d
Try zapret, find settings that work for you on it.
utopiah@lemmy.ml · 1 pts · 317d
Might want to look into split tunneling.