Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible to use the UI on existing vpn server installation ? #48

Closed
dberardo-com opened this issue Feb 14, 2024 · 9 comments
Closed

possible to use the UI on existing vpn server installation ? #48

dberardo-com opened this issue Feb 14, 2024 · 9 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@dberardo-com
Copy link

i see that the project comes with its own docker image which i assume contains also the ovpn server part. but it is possible to use it on an existing environment that runs outside docker? and if so, should those 2 environments share the same filesystems or can the 2 run on separate machines (ie. gui on server 1 and ovpn legacy env on server 2 ) ?

cheers

@d3vilh
Copy link
Owner

d3vilh commented Feb 15, 2024

Hi @dberardo-com,
Yes it is possible. You could clone repo, then go into ~/build/ directory and run ./standalone-install.sh script for standalone build and installation.
The issue #26 has installation steps and logs.
Please be aware that standalone installation is currently supports Debian linux only.

Post installation and UI start you have to go into "Configuration > OpenVPN UI" and set "OpenVPN ConfigPath" and "Easy-RSA ConfigPath" options accordingly.

Note that UI, at the moment takes server.conf and client.conf from /etc/openvpn/config subdirectory, so you have to copy files there and adjust server start config accordingly.
In version 1 I'll update UI to take config just from the /etc/openvpn dir.

As for the different servers - this may work with OpenVPN server configuration and EasyRSA pki dir mounted over NFS to the server where OpenVPN UI is running. However, it was never tested. If you would test, please let me know results.

@d3vilh d3vilh self-assigned this Feb 15, 2024
@d3vilh d3vilh added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Feb 15, 2024
@thomas2108
Copy link

thomas2108 commented Feb 20, 2024

There are several minor issues, I discovered, when installing this on my standalone vpn server. If I remember right, this where

  • location of server.conf and client conf - solved this using links
  • required scripts from build/assets at location /opt/scripts - solved using links
  • required openvpn-ui location at /opt/openvpn-ui - solved using links
  • scripts in /opt/scripts directory to i.e. restart openvpn only rely on docker - edited them to restart service
  • "auth-user-pass-verify /opt/app/bin/oath.sh via-file" server parameter was not saved on change (bug?) so required to link file to that directory
  • maybe more, don't remember, fixed several issues on the fly

but - cool project and really useful! Thanks d3vilh!

@d3vilh
Copy link
Owner

d3vilh commented Feb 26, 2024

Hi @thomas2108 thank you for the reporting.
I'll keep the issue open until documentation update in main branch.

@jav-12
Copy link

jav-12 commented Mar 1, 2024

I am also interested in this. I already have a working OpenVPN server with multiple users. I need a user interface to manage them properly.

@d3vilh
Copy link
Owner

d3vilh commented Mar 1, 2024

I already have a working OpenVPN server with multiple users.

Hi @jav-12 do you mean different server instances running on the same server?
If so, you could run different OpenVPN-Ui instances as well for every server instance you have.
All you need is to change ports and paths in openvpn-ui/conf/app.conf accordingly.

@jav-12
Copy link

jav-12 commented Mar 1, 2024

Yes. I want to use the GUI on the server already used for the VPN.

@d3vilh
Copy link
Owner

d3vilh commented Mar 12, 2024

If you have Docker env available on the server, you could run just openvpn-ui container as Dockerfile or Docker-compose with volumes: setup towards your server and easyrsa configuration files.

Alternatively is to build ui with ./standalone-install.sh script.
It will build binaries for your arch and distro version, then you can use those binaries to run as a service or as application without any issue.

For both cases it is better to use some test environment before applying the solution on Prod environment.

@null-p01ntr
Copy link

If you have Docker env available on the server, you could run just openvpn-ui container as Dockerfile or Docker-compose with volumes: setup towards your server and easyrsa configuration files.

Alternatively is to build ui with ./standalone-install.sh script. It will build binaries for your arch and distro version, then you can use those binaries to run as a service or as application without any issue.

For both cases it is better to use some test environment before applying the solution on Prod environment.

hello, im also trying to install just the web UI. I have installed OpenVPN with PiVPN with default settings. Where and how should I set up the volumes exactly?

@d3vilh
Copy link
Owner

d3vilh commented Mar 22, 2024

hello, im also trying to install just the web UI. I have installed OpenVPN with PiVPN with default settings. Where and how should I set up the volumes exactly?

Hi @null-p01ntr ,
You have to follow the standalone installation guide . Be precise with username and password vars.

Then just login and modify openvpnUI parameters to set where your openvpn server config dir is and easyrsa home directory.

I don't use PiVPN and Rspberry-Gateway is neat even on PiZero boards.

@d3vilh d3vilh pinned this issue Apr 12, 2024
@d3vilh d3vilh closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants