- The first VPN must be the one that uses token auth.
- Fill out
creds.ymlwith your correct information; you can use thecreds.yml.examplefile as instructions and starting point. - Change its permissions to 0600:
chmod 0600 creds.yml - Add your
.ovpnand 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.