openvpn-install/connect.sh
2018-03-12 01:59:16 -04:00

7 lines
254 B
Bash

#!/bin/bash
# OPENVPN OTG CONNECT SCRIPT
echo "Where is the .ovpn config file?: (/path/to/file.ovpn)"
read fileloc
sudo screen -d -m -S ovpn openvpn --config $fileloc
echo "Done, you should be connected, to end the connection, screen -x ovpn and ctrl+c"