OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to duplicate OpenVPN client configs?
« previous next »
  • Print
Pages: [1]

Author Topic: How to duplicate OpenVPN client configs?  (Read 4601 times)

interfaSys

  • Full Member
  • ***
  • Posts: 165
  • Karma: 13
    • View Profile
    • interfaSys ltd
How to duplicate OpenVPN client configs?
« on: January 17, 2016, 09:25:38 pm »
The first step would be to duplicate all the config files located in `/var/etc/openvpn`, but is the next step to manually edit config.xml or will it be picked up by the GUI as-is and added to the config when we hit "save".
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: How to duplicate OpenVPN client configs?
« Reply #1 on: January 18, 2016, 07:54:27 am »
The obvious solution would be to add a "clone" button to the OpenVPN client listing like we have in the firewall section. Is that what you're looking for? Or are you interested in client export features for clients?
Logged

interfaSys

  • Full Member
  • ***
  • Posts: 165
  • Karma: 13
    • View Profile
    • interfaSys ltd
Re: How to duplicate OpenVPN client configs?
« Reply #2 on: January 18, 2016, 11:04:33 am »
Quote
The obvious solution would be to add a "clone" button to the OpenVPN client listing like we have in the firewall section.

Indeed and that's the reason I opened this :)
https://github.com/opnsense/core/issues/676

But I was wondering if, in the mean time, there was an easy way to do this via the shell.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: How to duplicate OpenVPN client configs?
« Reply #3 on: January 18, 2016, 03:07:15 pm »
You could edit the /conf/config.xml and duplicate the responsible config, but no guarantees that'll work (ID mismatch, syntax error, etc.). There's no use copying directories as they are set up by the code directly from the XML.
Logged

interfaSys

  • Full Member
  • ***
  • Posts: 165
  • Karma: 13
    • View Profile
    • interfaSys ltd
Re: How to duplicate OpenVPN client configs?
« Reply #4 on: January 19, 2016, 10:47:11 am »
Thanks!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to duplicate OpenVPN client configs?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2