Page 1 of 1

openvpn-as lxc

Posted: Fri Jan 30, 2026 2:35 pm
by zemerdon
on Proxmox host:

check kernel version

Code: Select all

uname -r
check headers exist

Code: Select all

sudo apt search proxmox-headers-6.17.4-2-pve
install kernel headers

Code: Select all

sudo apt install proxmox-headers-6.17.4-2-pve
install git

Code: Select all

sudo apt install git -y
clone repositoty

Code: Select all

git clone https://github.com/OpenVPN/ovpn-dco.git
Reboot

make and install module

Code: Select all

cd ovpn-dco && sudo make && sudo make install
reboot

Start LXC

. : Possible problem and solutions : .

Redo permissions

Code: Select all

chown 100000:100000 /dev/net/tun
Previously I had module issues with the LXC after a restore, appending the following to the end of the lxc.conf resolved the issue.

Code: Select all

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
credit:

https://pve.proxmox.com/wiki/OpenVPN_in_LXC
https://github.com/OpenVPN/ovpn-dco#