I have a question regarding Wireguard and Transmission.
I have a subscription for Proton VPN.
Now i want to install the Wireguard VPN client (ore any other VPN client) on my Dietpi system and connect to ProtonVPN.
I also want to install Transmission and want the traffic of Transmission to be routed through the VPN tunnel.
I have also installed a lot of other services (Nextcloud, vaultwarden, jellyfin, …).
Now my question:
Is there a possibility, to just route the traffic of Transmission through the tunnel, but leave all other traffic from the other services as it is and not route through the tunnel?
As far as you do not route the whole traffic through WG on the client (w/ AllowedIPs = 0.0.0.0/0), the only traffic that’ll use WG will be the one that is trying to reach a machine behind the remote WG server (or the server itself if you only have one remote machine).
@Jiff
I made the other services (Nextcloud, vaultwarden, …) public accessible … i own a domain and point the domain to my public available IP address.
When that services now are also tunneld through ProtonVPN server, they are no more accessible for me.
I just want to have the traffic of one service (Transmission) tunneld through the VPN
There is nothing DietPi specific on the request. Basically install Wireguard from our software list. Download the WG configuration from Proton. That’s the easy part.
More difficult will be setting up split tunnel. But as said, it’s working same way as on other Linux system.
There are quite some guides on the web as well as ChatGPT should probably some solutions.
You can do that with iptables, but at the condition that your services are located on different ports, if they are eg.: all served by one https server using virtual hosts, you can’t.
I don’t really see where the problem is - what I would do would be to get rid of WG, which is not made to do that, and simply use ssh, probably through screen or tmux, as IIUC Transmission is a bittorrent client and thus must stay up even when you’re not connected.