-
-
Save bnjdg/176edfe8002ef1afc11bf3f707699043 to your computer and use it in GitHub Desktop.
OpenVPN in LXD Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On the host | |
============= | |
lxc profile set default raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm' | |
lxc profile device add default tun unix-char path=/dev/net/tun | |
# In the container | |
================== | |
1. mknod /dev/net/tun c 10 200 | |
2. install OpenVPN (https://github.com/Nyr/openvpn-install or manual) | |
3. edit /lib/systemd/system/openvpn@.service -- comment out/remove `LimitNPROC=10` | |
4. systemctl daemon-reload or reboot container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment