how can I create a new openvpn client configuration?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Jerry

how can I create a new openvpn client configuration?

Post by Jerry »

Hi, this is my first post.

I have DietPi installed on my Raspberry Pi 2 and I also have openvpn installed.
During installation, DietPi automatically creates server and client keys (http://dietpi.com/phpbb/viewtopic.php?f ... p=613#p613).
It works fine and I am able to connect the Raspberry Pi via openvpn.

But there is only one client configuration (DietPi_OpenVPN_Client.ovpn) created.
How can I create additional client config files?
I want to be able to connect the Pi from multiple clients. And I don´t want to use on and the same key for all.

Thanks in advance!
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: how can I create a new openvpn client configuration?

Post by Fourdee »

Hi Jerry,

You'll need to check the sourcecode on this one, been a while since I added this into DietPi, so don't have a definitive answer for you:
https://github.com/Fourdee/DietPi/blob/ ... 6714-L6807
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Jerry

Re: how can I create a new openvpn client configuration?

Post by Jerry »

Thanks for your hint. And sorry for the late response.
After some experimenting and searching on the web, I found a solution for this. I was able to use the existing scripts in the openvpn folder to create a new client key and config.
Post Reply