Advertisement
seedelmann

ChromeOS VPN

Oct 26th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. echo "Initialising VPN Connection"
  2. sleep '1'
  3. alias startvpn='sudo openvpn --mktun --dev tun0 && sleep 3 && sudo mount --bind ~/vpn/resolv.conf /var/run/shill/resolv.conf && sudo openvpn --config ~/vpn/my-vpn-config.ovpn --dev tun0 && sudo umount /var/run/shill/resolv.conf'
  4. sleep '1'
  5. sudo stop shill
  6. sleep '1'
  7. sudo start shill BLACKLISTED_DEVICES=tun0
  8. sleep '1'
  9. startvpn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement