36
submitted 4 months ago by joseplinux@lemmy.zip to c/linux@lemmy.ml

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

top 17 comments
sorted by: hot top controversial new old
[-] wth@sh.itjust.works 14 points 4 months ago

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 points 4 months ago

Not the Linux version unfortunately

[-] WIPocket@lemmy.world 3 points 4 months ago

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

[-] DrDystopia@lemy.lol 1 points 4 months ago

I don't see it, care to elaborate?

[-] WIPocket@lemmy.world 3 points 4 months ago

I found it in the settings:

Under "Features":

[-] DrDystopia@lemy.lol 1 points 4 months ago

Thanks, I need to have another look then.

[-] trillian@feddit.org 5 points 4 months ago

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 points 4 months ago* (last edited 4 months 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 1 points 4 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/…

[-] Zen_Shinobi@lemmy.world 4 points 4 months ago

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

[-] joseplinux@lemmy.zip 4 points 4 months ago

If all else fails, I'll probably end up doing just that, running discord inside a browser with a VPN extension

[-] boredsquirrel@slrpnk.net 1 points 4 months ago

Try oniux for that, exactly what you need

Otherwise look into oniux and how to replace arti with wireguare/shadowsocks/xray/amneziawg

[-] thetaT@hexbear.net 2 points 4 months ago

you can use nftables or ip route to route discord's IP addresses through a different interface like a VPN, alternatively you could launch discord with proxychains, there's many ways to do it

[-] boredsquirrel@slrpnk.net 2 points 4 months ago
[-] CaptainBasculin@lemmy.bascul.in 1 points 4 months ago

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

[-] hexagonwin@lemmy.sdf.org 1 points 4 months ago

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

zapret might also work

[-] utopiah@lemmy.ml 1 points 4 months ago

Might want to look into split tunneling.

this post was submitted on 11 Oct 2025
36 points (97.4% liked)

Linux

62524 readers
168 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS