/etc/init.d/vpnserver restart
nano /etc/init.d/vpnserver
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE # route all clients with ip 10.8.0.x into eth0 network
iptables-save -t nat # show current iptables nat
service netfilter-persistent save
nano /etc/dnsmasq.conf
/etc/init.d/dnsmasq restart
systemctl status openvpn@server
echo "nameserver 8.8.8.8" > /etc/resolv.conf
sudo apt update
sudo apt install resolvconf
sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
sudo systemctl status resolvconf.service
nano /etc/resolvconf/resolv.conf.d/head
# nameserver 8.8.8.8
# nameserver 8.8.4.4
sudo systemctl restart resolvconf.service
sudo systemctl restart systemd-resolved.service
reboot
WIREGUARD is required to install Kernel 5.6 or above.