how can I have my PROCD-based script reloaded if there're changes in any of the OpenVPN interfaces (up/down/ip renewal)?
Would procd_add_reload_interface_trigger work if I get the right interface name for the OpenVPN connection? Would config_load/config_foreach enumeration work?
I have a hotplug script that starts the vpn on a wan network event.
#!/bin/sh
#
if [ "${ACTION}" == "ifup" ] && [ "${INTERFACE}" = "wan" ]
then
/etc/init.d/openvpn start
fi
if [ "${ACTION}" == "ifdown" ] && [ "${INTERFACE}" = "wan" ]
then
killall openvpn
fi
Name /etc/hotplug.d/etc/iface/80-openvpn.
When a phone is plugged into my usb port it starts a tethering connection that creates a usb0 network device that is allocated to my wan which starts the openvpn to create a tunnel tap0 which is on my lan and all my router traffic goes through that from my cottage router to my home router. I'd be interested on how to set that up using the new PROCD.