Giter Club home page Giter Club logo

Comments (5)

EugenMayer avatar EugenMayer commented on June 28, 2024 2

Maybe to add something to the priority here.

When i use the cli configuration way with 1.7.3 or 1.7.4

./ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db --ovpn.server=REDACTED.tld:1194:udp --ovpn.network='172.21.0.0/24' --templates.clientconfig-path=/etc/openvpn/clients/client.tpl --auth.password

In both cases the server starts, just with 1.7.3 i actually see the dashboard, while with 1.7.4 i do not.

If you cannot reproduce this, it most probably is related that you have build the binary version against you own static gcc/network libs.

In my case, i use a debian11 box. It should be enough for you to

docker run --rm -it debian:bullseye bash
apt update
apt install -y coreutils easy-rsa wget
wget https://github.com/flant/ovpn-admin/releases/download/1.7.4/ovpn-admin-linux-amd64.tar.gz
tar xf ovpn-admin-linux-amd64.tar.gz
./ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db --ovpn.server=REDACTED.tld:1194:udp --ovpn.network='172.21.0.0/24' --templates.clientconfig-path=/etc/openvpn/clients/client.tpl --auth.password

Sure, you will need to install an OpenVPN server or just use this with docker-compose and connect to one of yours. But this way you should detect that your binary is yet not really x-platform since you probably forgot some of the CGO flags.

Looking at https://github.com/flant/ovpn-admin/blob/master/build.sh#L9

you are missing -tags netgo

from ovpn-admin.

EugenMayer avatar EugenMayer commented on June 28, 2024 1

Tested today, has been fixed with 1.7.5 - thank you!

from ovpn-admin.

pashcovich avatar pashcovich commented on June 28, 2024

could you please provide me with your configuration so that I can check it myself?

from ovpn-admin.

EugenMayer avatar EugenMayer commented on June 28, 2024

either used

EASYRSA_PATH=/etc/openvpn/easy-rsa
OVPN_INDEX_PATH=/etc/openvpn/easy-rsa/pki/index.txt
OVPN_CCD_PATH=/etc/openvpn/ccd
OVPN_AUTH_DB_PATH=/etc/openvpn/easy-rsa/pki/users.db 

or

/usr/local/share/ovpn-admin/ovpn-admin --easyrsa.index-path=/etc/openvpn/easy-rsa/pki/index.txt --easyrsa.path=/etc/openvpn/easy-rsa --ccd.path=/etc/openvpn/ccd  --auth.db=/etc/openvpn/easy-rsa/pki/users.db

from ovpn-admin.

pashcovich avatar pashcovich commented on June 28, 2024

@EugenMayer hi, could you please check if everything is ok with the version from the newest release

and thank you for your feedback and tips on using -tags netgo

from ovpn-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.