bin/vpnon.sh (view raw)
1 2 3 4 5 6 7 8
#!/usr/bin/env bash ssh -D 8008 emerald -fN sudo cp /etc/resolv.conf /etc/resolv.conf.bk sudo cp ~/dotfiles/resolv.conf /etc/resolv.conf sudo openvpn --config ~/client.ovpn sudo cp /etc/resolv.conf.bk /etc/resolv.conf