Auto create OpenVPNs?



  • Hello,

    recently I was needed to make several 10's of OpenVPN tunnels (our "road warriors" find that OpenVPN pretty nice solution to be used from hotels etc), so I setup separate pfsense 2.0.1 instance to use as OpenVPN gate only.

    As soon as I used it for tests, it was pretty nice, but as I face the need to create (say) 50-60 OpenVPN-enabled users I feel a bit of sadness. I don't want to setup separate Radius for such a small purpose, though.

    So I really wonder if there is any way to automatically create some 10's of such users on pfsense? Maybe some API or something?

    Thank you in advance!


  • Rebel Alliance Developer Netgate

    There isn't an automated way to make that many users+certificates.

    Even if you setup radius, unless you did auth-only, you'd still need certificates.

    Anyhow, I wouldn't consider 50-60 users "small", radius would work well for that size. There are freeradius packages for pfSense, though I'm not sure how easy it would be to add users to them in a batch (either freeradius or the new freeradius2 package)


Log in to reply