Creating openvpn server Link to heading
I used the script from github. which is very easy to follow to generate the server and config
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
./openvpn-install.sh
and to make sure the port 1194 is open, I used ufw to allow traffic on it
ufw allow 1194/udp
Fixing the issue with linux openvpn connection Link to heading
with generated ovpn, we can connect to the openvpn server
sudo openvpn --config client1.ovpn
but that will fail to connect with the message at the end of output
VERIFY OK: depth=0, CN=***************
I found the fix for this issue on link
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
script-security 2