#### Install WireGuard in Proxmox LXC ####
## edit LXC conf ##
nano /etc/pve/lxc/123.conf
add:
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
## adjust access rights ##
chown 100000:100000 /dev/net/tun
## reboot/start lxc ##
## update server ##
apt update && apt upgrade -y
## install wireguard using skript ##
wget git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
If VPN connection, but no internet
## edit config ##
nano /etc/wireguard/wg0.conf
add under interface:
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
neuen Clienten mit weiteren Optionen
wget git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
von conf (zu finden im Hauptordner mit ls) in QR umwandeln
https://www.wireguardconfig.com/qrcode
https://apfelcast.com/die-einfachste-opensource-vpn-wireguard-installation-auf-proxmox-lxc/
gefunden auf: https://github.com/Nyr/wireguard-install