Hi folks! I've been writing a plug-in for OpenVPN for quite some time now, and today I found a new trigger in openvpn_plugin_func_v1(...) with a OPENVPN_PLUGIN_LEARN_ADDRESS call, which I've never seen before.
I know this function can be called with 'add' and 'delete' arguments. But today I experienced 'update', which I am not sure how to handle. Are there any documentation on the arguments and environment variables available for this call? And when is this actually called? I've been running OpenVPN connection both with "short time" connections (<1 minute) and "long time" connections (>48 hours), and today I experience this one. How can I reproduce this action? My OpenVPN server which is running this plug-in is updating the iptables firewall based on the VPN clients MAC address, so it's kind of crucial for me to understand how this update works. I also see (since my handler returned the update with an error), that OpenVPN tried to call this function 5 times, and then did a delete and add. Is this the "plan B" solution for OpenVPN, when update fails? PS! A public wiki would be lovely for OpenVPN (I know there are some wiki functionality at SourceForge, if you don't want to set it up by yourself) ... I know I would be able to contribute with some things regarding OpenVPN plug-in and configuration of OpenVPN. kind regards, David Sommerseth