openvpn-mac-dns icon indicating copy to clipboard operation
openvpn-mac-dns copied to clipboard

Missing installation info

Open GoossensMichael opened this issue 6 years ago • 2 comments

It is not clear how to install this script properly. I am using OpenVpn Connect 3.0.2.

  • There is no /etc/openvpn folder, should I make this myself? (did this)
  • How does openvpn know about this script and the up and down commands?
  • OpenVPN just marks the commands in the logs as "UNUSED OPTIONS"

GoossensMichael avatar Aug 07 '19 14:08 GoossensMichael

Hi, Michael.

Openvpn will know about this script if the client has the following in the client config file:

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

This is a fairly standard solution for Linux. I'll make sure to add it to the README now.

andrewgdotcom avatar Aug 12 '19 14:08 andrewgdotcom

Does that go in the ~/Library/Application Support/OpenVPN Connect/profiles/*.ovpn file?

If so, does it make any difference where in the file it appears?

Ah, it seems that the GUI client may simply ignore these: https://forums.openvpn.net/viewtopic.php?t=32060

cpboyd avatar Aug 17 '22 19:08 cpboyd