Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. This is an overview of how to setup dns servers on mac osx with openvpn. Only tested with tunnelblick openvpn client.
  2.  
  3. Have your user create:
  4. ```
  5. ~/Library/openvpn/connected.sh
  6. ~/Library/openvpn/post-disconnect.sh
  7. ```
  8.  
  9. Ensure these files are executable:
  10. ```
  11. chmod +x ~/Library/openvpn/connected.sh
  12. chmod +x ~/Library/openvpn/post-disconnect.sh
  13. ```
  14.  
  15. add this to your ovpn client config file
  16. ```
  17. up ~/Library/openvpn/connected.sh
  18. down ~/Library/openvpn/post-disconnect.sh
  19. ```
  20.  
  21. Have your user install the ovpn file and connect to your openvpn server (I won't go into detail here).
  22.  
  23. In the tunnelblick VPN Details log, you should see the following on successful connection:
  24. "*Tunnelblick: The 'connected.sh' script executed successfully"
  25.  
  26. In the tunnelblick VPN Details log, you should see the following on successful disconnection:
  27. "*Tunnelblick: The 'post-disconnect.sh' script executed successfully"
  28.  
  29. The user can verify dns servers by running (pre/during/post vpn connection):
  30. ```
  31. cat /etc/resolv.conf
  32. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement