Vpn on LXC

lilp

Renowned Member
Feb 10, 2016
63
1
73
37
Hello,
I want configure a VPN client for a LXC debian (rtorrent) by using L2TP or other.

But I don't find anything to configure it.

Any helps?
 
Last edited:
But I don't find anything to configure it.

Don't get me wrong, but I'd suggest to look in a forum about setting up L2TP on Debian, not a virtualisation forum.


On the virtualisation side of things, I'd always suggest to try it out in a "real vm" (KVM) and get it to work there and then move to LXC with the same config, so that all the problems are LXC related. You normally only need to set permissions for some special devices in order to get it to work in LXC, e.g. for OpenVPN this is:

Code:
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.hook.autodev: sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"