1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-02-17 14:03:13 +03:00
openvpn-install/connect.sh

7 lines
252 B
Bash
Raw Normal View History

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