This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Setup: Assuming the ovpn file is named client.ovpn and it is located in the root dir: | |
export HISTSIZE=0 | |
user='user here' | |
pass='pass here' | |
sudo chmod 600 /client.ovpn | |
echo $user > /tmp/up | |
echo $pass >> /tmp/up | |
sudo mv /tmp/up / | |
sudo chmod 600 /up | |
export HISTSIZE=1000 | |
### Run client: | |
sudo openvpn --config /client.ovpn --auth-user-pass /up |
No comments:
Post a Comment