uot;
mailto:openvpn-users@lists.sourceforge.net>>
Subject: [Openvpn-users] Issue with "up" and "down" script
Below is the script I'm attempting to use (IP address obfuscated but is valid,
domain search obfuscated - wouldn't be valid)
#!/bin/bash
/usr/bin/echo "Params dev $d
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
And, as ever, check your log files.
-BEGIN PGP SIGNATURE-
Version: ProtonMail
wsBzBAEBCAAnBYJlT4J9CZBPl5z2a5C4nRYhBAm8PURno41yecVVVU+XnPZr
kLidAAA9uwgAvcj1NP1FJ0CBeowWL+63eZ7IUa7c6uypxIg/kvQ74Crv0cAc
1qxoWYiM/Mp7kVfEn+PWmRLgAT7d7ScqA0Lh9cS0
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hi,
for the record, OpenVPN does not set $PATH when executing scripts.
It looks like you have partially fixed this with use of `/usr/bin/echo`
but not done the same for `/usr/bin/resolvectl`.
You can set your expected $PATH for the script or call
Below is the script I'm attempting to use (IP address obfuscated but is valid,
domain search obfuscated - wouldn't be valid)
#!/bin/bash/usr/bin/echo "Params dev $dev and script type $script_type" >>
/tmp/vpn-dnscase "$script_type" in up) resolvectl dns $dev 10.10.10.1
/usr/bin/ec