Hello! There is OrangePi, you need to run the script after raising OpenVPN.The interface is called tun0.

I wrote this script here:
#put this script into /etc/network/if-up.d

  echo $(date)>>/usr/local/bin/update.log;

put along the path /etc/network/if-up.d/tun0updatedyn.sh, made executable.

After rebooting, OpenVPN as always rises, the script is not executed.The path /usr/local/bin/update.log exists, is writable(especially since the scripts from if-up.d are run as root).<
What am I doing wrong?
  • Made by adding to the end of /etc/openvpn/my.conf lines

    script-security 2
    – Monty84 Apr 15 '19 at 13:49

1 Answers 1

The /etc/network/if-up.d/and /etc/network/if-down.d/scripts are called only by ifup and ifdown commands.Check whether a line will appear if you first turn off the VPN and then pick it up.