Hacker News new | past | comments | ask | show | jobs | submit login

> You can route network of exatorrent through network/VPN .

that always comes with the danger of not going through VPN if the connection somehow drops or you've restarted the machine its running on and the vpn started after the torrent client.

and the linux kernel implementation isnt necessarily available if its running in a docker container of some NAS or even on a windows machine.

it would also make it easier to use, allowing more people to utilize the tech.




> that always comes with the danger of not going through VPN if the connection somehow drops or you've restarted the machine its running on and the vpn started after the torrent client.

My current setup uses namespaces to avoid this issue. Basically, one can create a wg interface in the default namespace and then move it to a new namespace and run applications there. The wg interface keeps routing the encrypted traffic through the interfaces in the default namespace, but as there is only the wg interface in the new namespace, there is no risk of leaking any traffic. It also doesn't need a network bridge and doesn't disturb the network configuration of the host.

I use lxc, but there are probably more lightweight options to just start an application in a different network namespace.

See: https://www.wireguard.com/netns/


What a great suggestion! I had debated rolling over to wg as my VPN provides it, however hadn't worked out how to manage the Binding for the torrent applications.

This relieves me having to manage restarts when the VPN connection issues for example a new IP. I currently just allow some scripts to refresh things when the uplink changes.


So for wireguard-nt and qbittorrent, qbitorrent has the ability to only send traffic on a particular interface (under advanced settings). I set this to be the WG interface and that works as a poor man's killswitch.


Thanks for suggesting me.

I will consider this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: