balena-io-modules / openvpn-client

MIT License
17 stars 7 forks source link

How to use it with .ovpn file? #3

Open SashaDesigN opened 8 years ago

SashaDesigN commented 8 years ago

How to use it with .ovpn file? I use Ipvanish and it provides to me .ovpn files. login/pass in console I type `openvpn --config filepath.ovpn but I want to automate it and have ability to switch connections multiple times when App is running.

Thanks)

corebreaker commented 5 years ago

Maybe like that:

const vpnclient = require('openvpn-client');

vpnclient.create(['--config', 'filepath.ovpn']);
SashaDesigN commented 5 years ago

This answer is like a flashback from past life))