[Plugin] different subnet based on the cert name

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
yunai39
OpenVpn Newbie
Posts: 7
Joined: Mon Feb 17, 2014 2:35 pm

[Plugin] different subnet based on the cert name

Post by yunai39 » Wed Apr 30, 2014 2:03 pm

Good Morning,


I created a plugin for OpenVPN and I will like to have some feedback and comment.

So my plugin is to allow us to group user in different subnet. Usually you would use client-config-dir, but then you will need to generate every single client configuration file, before anyone ever connect to your VPN.

Lets say you have two group of people :
people from group A: there certificat common_name start with A
people from group B: there certificat common_name start with B

You want people from group A to go in the subnet 10.0.0.0/24
and people from the group B to go to subnet 10.0.1.0/24

This is what I tried to achieved.

So far, the plugin seems to work, but I need some testing and probably someone who can correct me on my error :roll: ,

I'm far from being a develloper in c, but I really needed my VPN to be able to do that, so any help, critique, feedback would be appricated.


The plugin is disponible here: https://github.com/yunai39/OpenVPNSubNetworkPlugin
Thanks a lot

Post Reply