Vpn on LXC

lilp

Renowned Member
Feb 10, 2016
63
1
73
36
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"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!