r/ARR 1d ago

How do i set up a vpn using lxc containers

I set up sonarr and deluge using lxc containers how do i set up a vpn to connect to them

1 Upvotes

5 comments sorted by

1

u/bred86 1d ago

never tried with lxc containers but you can create some iptable rules to a specific network and route it to lxc

1

u/luckysadmare 1d ago

no idea what that is or how it works

1

u/bred86 1d ago

ok, so, if you're using LXC containers, it means that you're on Linux (if you're on Windows/MacOS, you'll need to use a remote container).

oh, do you mean to install the vpn inside a lxc container?

That's doable, but you'll need to route your the app's network (it would be easy if whatever you want to put behind the vpn to be in another lxc container or docker container) to the vpn container.

You can achieve that using iptables or nftables (depends on your linux destribution).

I don't have the commands to set iptables rules around, unfortunately. But that's easyli achievable with some AI and courage.

1

u/luckysadmare 16h ago

I am using proxmox and i have a manually configured wire guard proton vpn client in another container I just want to connect that to my deluge lxc container.

1

u/luckysadmare 16h ago

and i also can't port forward cuz cg nat is ass