Skip to content

Instantly share code, notes, and snippets.

@tschaefer
Last active August 30, 2016 18:49
Show Gist options
  • Save tschaefer/c9d91ec9c2c24daee74a84645077acfd to your computer and use it in GitHub Desktop.
Save tschaefer/c9d91ec9c2c24daee74a84645077acfd to your computer and use it in GitHub Desktop.
OpenVPN MacOS DNS
...
script-security 2
up bin/up.sh
down bin/down.sh
...
#!/bin/sh
/usr/sbin/networksetup -setdnsservers Wi-Fi EMPTY
#!/bin/sh
/usr/sbin/networksetup -setdnsservers Wi-Fi 10.1.2.32 10.1.2.42
@tschaefer
Copy link
Author

$ sudo openvpn --config config.ovpn --up-restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment