wget -O openvpn.sh https://get.vpnsetup.net/ovpn
sudo bash openvpn.sh
Do you want OpenVPN clients to connect to this server using a DNS name,
e.g. vpn.example.com, instead of its IP address? [y/N]
Which protocol should OpenVPN use?
1) UDP (recommended)
2) TCP
Protocol [1]: 1
Which port should OpenVPN listen to?
Port [1194]: 53
Select a DNS server for the clients:
1) Current system resolvers
2) Google Public DNS
3) Cloudflare DNS
4) OpenDNS
5) Quad9
6) AdGuard DNS
7) Custom
DNS server [2]:
Enter a name for the first client:
Name [client]: 1
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE