Client ignoring up/down script options
Posted: Thu Mar 25, 2021 11:12 am
So my ovpn file has the usual lines:
The actual /etc/openvpn/update-resolv-conf file is a custom made script I tweaked to manage the resolvconf entries in mac. This script is tested and working fine when I use brew's command line openvpn client.
The script also works fine when I use Tunnelblick
However, OpenVPN Connect clients (tested both v2 and v3) completely ignore the up/down entries in the config file. Nada. I look in the connection logs, there is nothing suggesting that the scripts are executed. I added a logging line in the script to dump into a /tmp/ file info about the time of call and env received, in case there was some issue like that, yet nothing. It seems simply as if the script is completely bypassed.
I have been completely unable to find information regarding this issue, with all the leads taking me to dead ends.
Any help would be highly appreciated.
(edited to fix bbcode block)
Code: Select all
script-security 2
up "/etc/openvpn/update-resolv-conf"
down "/etc/openvpn/update-resolv-conf"
The script also works fine when I use Tunnelblick
However, OpenVPN Connect clients (tested both v2 and v3) completely ignore the up/down entries in the config file. Nada. I look in the connection logs, there is nothing suggesting that the scripts are executed. I added a logging line in the script to dump into a /tmp/ file info about the time of call and env received, in case there was some issue like that, yet nothing. It seems simply as if the script is completely bypassed.
I have been completely unable to find information regarding this issue, with all the leads taking me to dead ends.
Any help would be highly appreciated.
(edited to fix bbcode block)