VPN on LXC Container - LXC Commands
Before installing Wireguard on LXC, run these commands.
1
2
3
4
5
lxc config set lxd-vpn raw.lxc "lxc.mount.entry = /dev/net dev/net none bind,create=dir"
lxc config set lxd-vpn linux.kernel_modules=ip_tables
lxc config set lxd-vpn raw.lxc "lxc.cgroup2.devices.allow = c 10:200 rwm"
lxc config device add lxd-vpn port proxy listen=udp:0.0.0.0:51820 connect=udp:0.0.0.0:51820
This post is licensed under CC BY 4.0 by the author.