Chocobozzz / OpenVPN-Admin

Install and administrate OpenVPN with a web interface (logs visualisations, users managing...)
GNU Affero General Public License v3.0
947 stars 371 forks source link

Install alongside existing OpenVPN Server #40

Open kingy444 opened 7 years ago

kingy444 commented 7 years ago

I would like to install over the top of an existing OpenVPN config (and not start again from scratch) this will be very useful for logs etc moving forward.

looking at the install.sh it appears this could be accomplished by removing lines 88-199 in install.sh. I would hate to miss something and destroy my current config so hoping you can clarify any other reason not to install this post installing OpenVPN given you put this all together?

Could either have 2 install files or the install file dynamically detects a current install (I would go the former to prevent people accidentally selecting to overwrite an installation)

Chocobozzz commented 7 years ago

Hi!

Installation on an existing openvpn server should be possible. But make a save of your existing /etc/openvpn directory before! You would just have to copy the scripts and some directives from the server.conf file (in particular these lines -> https://github.com/Chocobozzz/OpenVPN-Admin/blob/master/installation/server.conf#L80)

Having an "install of existing openvpn server" would be very useful. Do not hesitate to make a PR if you're interested in such feature :)

kingy444 commented 7 years ago

the way i read the config screp, if i removed the lines mentioned i dont think it will actually even touch your current config, does this sound right to you?

Chocobozzz commented 7 years ago

Yep.

egesu commented 7 years ago

@kingy444 did you try it? I'm planning to install without removing my existing OpenVPN server.