- The first VPN must be the one that uses token auth.
- Fill out
creds.yml
with your correct information; you can use thecreds.yml.example
file as instructions and starting point. - Change its permissions to 0600:
chmod 0600 creds.yml
- Add your
.ovpn
and certificate files to this directory. - Run
ruby connect.rb
You'll be prompted for your SUDO password (depending on your environment) and your OATH token. The script will connect to both VPNs sequentially and, at the end, will display information on how to view logs and disconnect.