check openvpn connected code example
Example: check openvpn working
echo "Your IP: $(dig +short myip.opendns.com @resolver1.opendns.com)"
curl ifconfig.co
echo "Your IP: $(dig +short myip.opendns.com @resolver1.opendns.com)"
curl ifconfig.co