OpenVPN-AS LXC w/ DCO module loaded

zemerdon

New Member
Aug 22, 2025
6
1
3
on Proxmox host:

check kernel version
Code:
uname -r

check headers exist
Code:
sudo apt search proxmox-headers-6.17.4-2-pve

install kernel headers
Code:
sudo apt install proxmox-headers-6.17.4-2-pve

install git
Code:
sudo apt install git -y

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

reboot

make and install module
Code:
cd ovpn-dco && sudo make && sudo make install

reboot

Start LXC

. : Possible problem and solutions : .

Redo permissions
Code:
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:
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#
 
Last edited: