Skip to content

Instantly share code, notes, and snippets.

@raffysommy
Last active December 17, 2016 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raffysommy/9be0acff422e12c0eb731ceafc2cc66d to your computer and use it in GitHub Desktop.
Save raffysommy/9be0acff422e12c0eb731ceafc2cc66d to your computer and use it in GitHub Desktop.
#!/bin/sh
PUBLICIP=$1
wget $2 -O client1.tgz
tar -xzpmvf client1.tgz
sed -i "s/remote.*$/remote $PUBLICIP/g" client.ovpn
openvpn --daemon --config client.ovpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment