Create OpenVPN client config by command line?

Is it possible to create a new client config by commandline / SSH only and not via webui?
If so, what commands are needed?

There are many guides online,
see How To Guide: Set Up & Configure OpenVPN Client/server VPN | OpenVPN


Hi paul,
thanks for your reply, but I think you got me wrong.
I don’t want to create any additional/custom OpenVPN-configs besides the one that comes with IPFire.
I’m rather looking for a way to manage the entries via commandline. So that any account I add via SSH is created the same way as if I add it via the webui. Also for disabling and removing accounts from there.

I don’t think such a tool exists. If I understood, you want sometool to:

root@ipfire# sometool list
vpnuser bob
vpnuser alice

root@ipfire# sometool remove bob
vpnuser bob removed

maybe you can write a script?

No, not “sometool”, but the scripts that are already used by the webui. I’m just missing the insight which scripts and parameters are actually needed.

You can look in /srv/web/ipfire/cgi-bin/ovpnmain.cgi and see what the code does …