Good Morning, I have made an atempte at creating a new plugin for OpenVPN. My goal was to be able to give ip, comming from different subnet , to user from different group. Let me explain:
You have two group: Group A, where user common name follow the regex ^A* and those people need to have an ip in 10.0.0.0/24 Group B, where user common name follow the regex ^B* and those people need to have an ip in 10.0.1.0/24 Usually, you would use client-config-dir, but for that you need to have every file ready before hand. I want my plugin to handle that kind of situtation. Tell me if you think it is a bad idea, good, my implementation suck ... well anything. The plugin is disponible here https://github.com/yunai39/OpenVPNSubNetworkPlugin/blob/master/src/simple.c I am far from being an expert in C, and I tried to figure out how OpenVPN plugin work by reading previous plugin code. Thank you.