Testing if your VPN is working correctly on linux
dig +short myip.opendns.com @resolver1.opendns.com
update on 26-Nov-2021:
Wget and curl alternatives
wget 'http://ipecho.net/plain' -O - -q ; echo
wget -qO - icanhazip.com
curl ifconfig.me