I've implemented a custom client-connect script on my server, and it works fine. I added client-connect to the advanced configuration box of the server configuration page.
But…I saw that previously there was a default script in the actual ovpn config file in /var/etc/openvpn:
Now that's gone and mine has replaced it. Question is…will this cause a problem? Did I do this wrong?
If you need RADIUS support for attributes (such as IP addresses, ACLs, routes, etc) then you need that script. If you don't need RADIUS, then you don't need the script and it's safe to replace it with your own.
Ah…yeah, so I see that one firewall I'm using RADIUS for OpenVPN on doesn't work with client-connect defined.
This seems like a bug - is there a workaround? Is it a known issue?
Edit - I could just call my script from the attributes script...though I'm looking for something clean. Meaning, I get all the environment variables, etc.