Free VPN configuration files not opened in terminal

Why VPN configuration files are not opened via

sudo openvpn --config pathname/file

?

The configuration file is opened in terminal and it shows that VPN was activated, but ping shows no coonnection and pages are not loading in browser.