Lxd/lxc container with rtorrent - how to connect with rutorrent?



Hey folks,

I need some help with my configuration. I installed QB a few weeks ago and everything works like a charm. Thank you!
The only thing I am missing is the ability to use a vpn for torrenting.
I know I could redirect all rtorrent traffic through tun0 with sophisticated iptable rules. But I don’t want to mess with that. My Server works really well and I don’t want too much downtime or even damage something.
That’s why I came up with the idea to run a container specifically for rtorrent.

This is my setup:

  • dedicated server: Ubuntu 16.04 with QB (Plex, etc)
    - privileged lcd/lxc container: Ubuntu 16.04 with openvpn + rtorrent

My question is: How can I connect rutorrent (QuickBox) with rtorrent (container)?
My goal is to replace QB rtorrent with lxc rtorrent in order to use QB with little to no restraints.

Do you guys think this is possible?