Answer the question
In order to leave comments, you need to log in
Why is the script not executed when connecting OpenVPN on OrangePi (Ubuntu 16.04.6 LTS)?
Hello! There is OrangePi, it is necessary to execute the script after raising OpenVPN. The interface is called tun0.
Wrote this script:
#!/bin/sh
#put this script into /etc/network/if-up.d
if [ "$IFACE" = tun0 ]; then
echo $(date) >> /usr/local/bin/update.log;
fi
Answer the question
In order to leave comments, you need to log in
The /etc/network/if-up.d/ and /etc/network/if-down.d/ scripts are called only by the ifup and ifdown commands. Check if the line will appear if you first turn off the VPN, and then raise it.
Somewhere there is a redirect from www to without www, here it is in a circle and redirects. The browser noticed this and threw an error.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question