Skip to content

Instantly share code, notes, and snippets.

@timurvafin
Last active August 29, 2015 14:10
Show Gist options
  • Save timurvafin/c0e953302cb9fce44f73 to your computer and use it in GitHub Desktop.
Save timurvafin/c0e953302cb9fce44f73 to your computer and use it in GitHub Desktop.
VPN for Github
  1. Sign up https://www.frootvpn.com
  2. Download scripts
wget https://www.frootvpn.com/files/frootvpn.ovpn -O /etc/openvpn/frootvpn.ovpn
wget https://gist.githubusercontent.com/timurvafin/c0e953302cb9fce44f73/raw/74a45a61f3721d32d07b6119f815ed22df6dfdf0/github.sh -O /etc/openvpn/start_github.sh
wget https://gist.githubusercontent.com/timurvafin/c0e953302cb9fce44f73/raw/89a71b3d8f7f52bf3a7a23c72910c898d1b812a3/stop_github.sh -O /etc/openvpn/stop_github.sh
#!/bin/sh
openvpn --route-nopull \
--route 192.30.252.0 255.255.252.0 vpn_gateway \
--config /etc/openvpn/frootvpn.ovpn \
--daemon
kill `ps fax | grep frootvpn.ovpn | grep -v grep | awk '{print $1}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment