Sorry if this is the wrong place to post this, I've been struggling to work out how with this container to execute a script once the tunnel comes up. The purpose if this is to update via an API the IP assigned to the VPN.
As a fallback I know I can add up /pathtoscript/script.sh to my .ovpn file but I suspect there is a more elegant way to do this, hopefully configurable with an evinronment variable. The haugene container for example exectutes /scripts/openvpn-post-config.sh.
Sorry if this is the wrong place to post this, I've been struggling to work out how with this container to execute a script once the tunnel comes up. The purpose if this is to update via an API the IP assigned to the VPN.
As a fallback I know I can add
up /pathtoscript/script.sh
to my .ovpn file but I suspect there is a more elegant way to do this, hopefully configurable with an evinronment variable. The haugene container for example exectutes/scripts/openvpn-post-config.sh
.Current setup