Thursday, September 25, 2014

OPenVPN Client for Linux ( No GUI needed )

### 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:

Followers