Giter Site home page Giter Site logo

wutze / openvpn-webadmin Goto Github PK

View Code? Open in Web Editor NEW
147.0 147.0 47.0 3.54 MB

Create and manage your virtual private network via web browser and OpenVPN with your private OpenVPN-WebAdmin

License: GNU Affero General Public License v3.0

Shell 23.01% CSS 2.36% PHP 70.78% JavaScript 3.85%
admin centos debian interface linux multilanguage openvpn openvpn-server openvpn-web-interface-free openvpn-webadmin openvpnadmin server ui vpn vpn-server webadmin webconfig webfrontend webinterface

openvpn-webadmin's People

Contributors

dependabot[bot] avatar dungpham91 avatar victorhck avatar wutze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

openvpn-webadmin's Issues

Certificate error

Thank you for creating this beautiful

Certificate error On the client device
Thanks to everyone for their guidance

User *.ovpn not editable

I cannot see and change the settings in the *.ovpn of the user? It used to work in the past. Error?

Pentests and more? Need help.

English

I am not a professional programmer. Nevertheless, I am building this project because I enjoy annoying those governments that really want to deprive their citizens of free information. For example, there are governments that take pleasure in spying on journalists who should be removed from this globe!

I know from my own experience how it feels to be "guarded" in this way. As a former citizen of the GDR, I am familiar with a system of secret services that only ever pursue their own interests, but never want to protect the rights of citizens.

Of course, I am familiar with the relevant safeguards that have to be observed when setting up such a project. Nevertheless, I certainly lack knowledge or experience in some areas. It would be nice if one or two people could find the time to look for mistakes. I don't want people's lives to be affected by mistakes I might make here. Therefore, I need your help so that this will hopefully never happen. In particular, hacking attacks on access data are at the top of the list. Maybe someone here knows someone else who can test something like this ;o)

My thanks would follow you forever ;o)

Chinese

我不是一个专业的程序员。然而,我建立这个项目是因为我喜欢惹恼那些真正想剥夺其公民自由信息的政府。例如,有些政府以监视记者为乐,应该把他们从这个世界上赶走!

我从自己的经验中知道以这种方式被 "防备 "的感觉。作为**德国的前公民,我熟悉一个总是追求自己的利益,但从未想过要保护公民的权利的特务系统。

当然,我熟悉在设立这样一个项目时必须遵守的相关保障措施。尽管如此,我肯定在某些方面缺乏知识或经验。如果有一两个人能够抽出时间来寻找错误,那就更好了。我不希望人们的生活因我在这里可能犯下的错误而受到影响。因此,我需要你的帮助,这样就有希望永远不会发生这种情况。特别是,对访问数据的黑客攻击位列榜首。也许这里有人知道其他人可以测试这样的东西;o)

我的感谢将永远跟随你;o)

五项测试和更多

German

Ich bin kein professioneller Programmierer. Dennoch baue ich dieses Projekt auf, da ich Spaß daran habe solche Regierungen zu ärgern, die ihren Bürgern wirklich freie Informationen vorenthalten möchten. Zum Beispiel gibt es Regierungen denen es eine Freude ist Journalisten zu bespitzeln, die von diesem Erdball entfernt gehören!

Ich weiß aus eigener Erfahrung wie es sich anfühlt auf diese Weise "bewacht" zu werden. Als ehemaliger DDR-Bürger bin ich vertraut mit einem System von Geheimdiensten, die immer nur ihr eigenes Interesse verfolgen, aber niemals die Rechte der Bürger wahren wollen.

Natürlich bin ich mit den einschlägigen Sicherungsmechanismen vertraut, die man beim Aufbau eines solchen Projektes beachten muss. Dennoch fehlt es mir ganz sicher an einigen Stellen an Wissen beziehungsweise an Erfahrungen. Es wäre schön wenn sich der ein oder andere finden würde, Fehler zu suchen. Ich möchte nicht das Menschen durch Fehler, die ich hier machen könnte, in ihrem Leben beeinträchtigt werden. Daher benötige ich Eure Hilfe, damit das hoffentlich niemals passieren wird. Insbesondere Hacking-Angriffe auf Zugangsdaten, stehen hier an erster Stelle. Vielleicht kennt ja hier jemand jemanden der jemand anderen kennt, der so etwas testen kann. ;o)

Mein Dank würde Euch auf ewig verfolgen. ;o)

Russian

Я не являюсь профессиональным программистом. Однако я создаю этот проект, потому что мне нравится раздражать те правительства, которые действительно хотят лишить своих граждан свободной информации. Например, есть правительства, которые с удовольствием шпионят за журналистами, которых следует удалить с этого земного шара!

Я знаю по собственному опыту, каково это - быть "охраняемым" таким образом. Как бывший гражданин ГДР, я знаком с системой секретных служб, которые всегда преследуют свои собственные интересы, но никогда не хотят защищать права граждан.

Конечно, я знаком с соответствующими гарантиями, которые должны соблюдаться при создании такого проекта. Тем не менее, в некоторых областях мне, конечно, не хватает знаний и опыта. Было бы хорошо, если бы один или два человека нашли время для поиска ошибок. Я не хочу, чтобы жизни людей пострадали от ошибок, которые я могу совершить здесь. Поэтому мне нужна ваша помощь, чтобы этого, надеюсь, никогда не случилось. В частности, хакерские атаки на данные доступа занимают первое место в списке. Может быть, кто-то здесь знает кого-то еще, кто может протестировать что-то подобное ;о)

Моя благодарность будет следовать за вами вечно ;о)

Переведено с помощью www.DeepL.com/Translator (бесплатная версия)

Spanish

No soy un programador profesional. Sin embargo, estoy construyendo este proyecto porque disfruto molestando a los gobiernos que realmente quieren privar a sus ciudadanos de información libre. Por ejemplo, hay gobiernos que se complacen en espiar a los periodistas, ¡que deberían ser eliminados de este mundo!

Sé por experiencia propia lo que se siente al estar "vigilado" de esta manera. Como antiguo ciudadano de la RDA, conozco un sistema de servicios secretos que siempre persiguen sus propios intereses, pero nunca quieren proteger los derechos de los ciudadanos.

Por supuesto, estoy familiarizado con las salvaguardias pertinentes que deben observarse al poner en marcha un proyecto de este tipo. Sin embargo, es cierto que me faltan conocimientos o experiencia en algunos ámbitos. Estaría bien que una o dos personas tuvieran tiempo para buscar errores. No quiero que la vida de la gente se vea afectada por los errores que pueda cometer aquí. Por lo tanto, necesito su ayuda para que esto, con suerte, nunca ocurra. En particular, los ataques de hacking a los datos de acceso ocupan el primer lugar de la lista. Quizás alguien de aquí conozca a alguien más que pueda probar algo así ;o)

Mi agradecimiento le seguirá siempre ;o)

French

Je ne suis pas un programmeur professionnel. Cependant, je construis ce projet parce que j'aime embêter les gouvernements qui veulent vraiment priver leurs citoyens d'informations libres. Par exemple, il y a des gouvernements qui prennent plaisir à espionner les journalistes et qui devraient être retirés de ce globe !

Je sais par expérience ce que cela fait d'être "gardé" de cette manière. En tant qu'ancien citoyen de la RDA, je connais bien un système de services secrets qui poursuivent toujours leurs propres intérêts, mais ne veulent jamais protéger les droits des citoyens.

Bien entendu, je connais les garanties pertinentes qui doivent être observées lors de la mise en place d'un tel projet. Néanmoins, je manque certainement de connaissances ou d'expérience dans certains domaines. Ce serait bien si une ou deux personnes pouvaient trouver le temps de chercher les erreurs. Je ne veux pas que la vie des gens soit affectée par les erreurs que je pourrais faire ici. J'ai donc besoin de votre aide pour que cela n'arrive jamais. En particulier, les attaques de piratage des données d'accès figurent en tête de liste. Peut-être que quelqu'un ici connaît quelqu'un d'autre qui peut tester quelque chose comme ça ;o)

Mes remerciements vous suivraient pour toujours ;o)

Cannot create new user

Describe the bug
Hi man,
Today I install a new other vpn server and I faced a new bug.
When I click to create new user, it just flash a second with something message like "Loading" and then nothing happen.
No new account can be create.

To Reproduce
Steps to reproduce the behavior:

  1. Go to menu User
  2. Click on button Create a new user
  3. Type needs information: Username, eMail, Password.
  4. Click on button create user
  5. Window flash a haft second then no user was created.

Expected behavior
Can fix error and can create user again. I think this issue relating to Bootstrap again.

Screenshots
I take an image when I click to menu User, just before I create a new user.

image

Server:

  • OS: 20.04.2 LTS (Focal Fossa)
  • Install status: complete new

Client:

  • OS: Windows 7 Ultimate 64bit
  • Browser: Brave
  • Version: 1.28.106 Chromium: 92.0.4515.159 (Official Build) (64-bit)
  • Status shield: turn off for vpn site

MORE INFORMATION:
I think the code check format Username is not working right.
My quick test (just type some format username):

  • test: okay
  • test-01: okay
  • test_01: okay
  • test.01: failed
  • testA: failed

no connectionn

i followed the steps but the connection is not successful
i`m trying with openvpn connect on windows

Wrong message for log.

This line is showing the wrong log path.

message_print_out i "${INFO002}"

"[▸ You can check the progress of the installation with tail -f /opt/[ovpn-git]/loginstall.log ◂]"

When the log is in "${CURRENT_PATH}/loginstall.log"

The line should be:

message_print_out i "${INFO002} ${CURRENT_PATH}/loginstall.log"

And the INFO002 should be:

INFO002="You can check the progress of the installation with tail -f "

Your wishes?

Your wishes are in demand.

Planned is:

  • Certificate-based authentication via TLS protocol using X.509 certificates
  • Replace/edit the keys
  • Revoke table
  • Assignment of fixed IP addresses to users

Server live bandwidth monitor.

Hello,

That would really be useful if there were more system monitor parameters such as server bandwidth live data available on the overview page.

thanks.

mysql ERROR 1064

Greetings!

i tried to install it with the installation script and then i got this error. does anyone know how to fix it?

[Screenshots]
Screenshot 2022-09-22 153240

There is no user edit button

Hello I have been using this admin panel for several months, everything was fine My previous server was filtered and I installed the
panel on my new server but there is no edit button next to the username My version is Debian 10 please guide me
Regard

Screenshot_20220624_234015_com android chrome_edit_1037142966596422

Cannot Install on Centos 7

I've removed the install node and yarn section because it always installs node 6.x < requirement is 8. I'd manually install node 12 before running install.sh. I also install php7.3 and php73-fpm with extensions. When I access FQDN / IP it throws a 500 error.
image

installsh.txt
loginstall.log

How to change to TLS-CRYPT

Hello, now i am using this script https://github.com/Nyr/openvpn-install
in our country OpenVPN tls-auth method blocked and not working, but tls-crypt works fine, then i found you greate admin panel, but all connected but internet not working because tls-auth OpenVPN servers not working in our country Turkmenistan.
Can you please help me and change your open vpn server to TLS-CRYPT method?

Users download limit

Hello,

is there any way that we can count each user's download and upload data and limit them on a specific threshold?

Thanks.

Can't install - missing nodejs 12.0 in CentOS

Hi,

I just installed Chocobozzz/OpenVPN-Admin. It works well.

I would like to try yours too because your gui look interesting. But I can't install them. It aborted with errors.

My system is CentOS 8 and it has been fully updated ("dnf update -y" has been done)

(1) I already have mariadb-server installed correctly and used by my website. Your install.sh script reset the database root password to something I don't know and I can no longer login with root. I have to uninstall mariadb-server, and delete /var/lib/mysql, then run your script again to reinstall the mariadb-server.

(2) I already have yarn installed. The script fails with message
error @stencil/[email protected]: The engine "node" is incompatible with this module. Expected version ">=12.10.0". Got "10.24.0"
error Found incompatible module.
[✗] Error yarn installed

Can you check?

Thanks.

reset/get panel user and password

hello all i installed the panel but i cant login using admin/admin or any other user or password
how to get the old password or reset password ?
[solved : reinstall the panel and read what U write :) ]

cat: /var/log/openvpn/openvpn.log: Permission denied

Hello friends
I have been using this panel for a year and everything was fine.
I had to reinstall a few days ago
Now I can't edit or delete the user because the plus sign is not next to the users
I found the following error in the var/log/error.log folder.
If you have an idea to solve the problem
please contribute 🙏🌹

"cat: /var/log/openvpn/openvpn.log: Permission denied"

Great project

Thanks to the author for bringing such a convenient and great project,
Unfortunately, I only know Java and cannot participate in open source

Wrong path

You are assuming this will be installed in the http:/// of a root dir. Its not correct to assume that. I in my case will be using this in http:///ovpn/.

Missing in forms the path.

Translation

A very nice project, if you are interested in translating into Polish, I am here to help.

Cannot click any menu or button on Admin dashboard

Hi guys,

Describe the bug

  • I installed the first server on 30/06/2021. It's working okay, still today.
  • Today, I installed a new server. And after the installation finished, I can login to admin dashboard, but I cannot click any menu or anything on Admin dashboard.

For example, when I click menu Log, the dashboard did not change anything and the URL show like https://vpn.mydomain.com#log.

Log file

I checked the Apache's error log, the file /var/log/apache2/error.log, it's showing:

[Thu Jul 22 09:19:01.322802 2021] [php7:notice] [pid 685] [client 42.113.216.123:51489] PHP Notice:  Undefined index: sort in /srv/www/openvpn-admin/include/class/class.data.php on line 89, referer: https://vpn.mydomain.com/
[Thu Jul 22 09:19:01.322873 2021] [php7:notice] [pid 685] [client 42.113.216.123:51489] PHP Notice:  Undefined index: order in /srv/www/openvpn-admin/include/class/class.data.php on line 90, referer: https://vpn.mydomain.com/

Browser console

Then I check browser console, it's showing like this image.

Selection_001

File tab.js in folder /srv/www/ovpn_modules/node_modules/bootstrap/js/dist/tab.js

Guess cause

I guess this bug cause by module bootstrap. On the old server, folder bootstrap just has 4.8 MB size. On the new server, folder bootstrap has 8.5 MB size. There is something distinctly different.

Temp solution

  1. Delete folder /srv/www/ovpn_modules/node_modules/bootstrap on the new server.
  2. Copy folder bootstrap from old server and replace on the new server.

I attached 2 folders to this bug for you guys.

Please compare it and find out the root cause of this bug.

Server info

Here is my environment, both servers are same.

  • OS: 20.04.1 x64 LTS (Focal Fossa)
  • User install: root
  • RAM: 4 GB
  • HDD: 50 GB
  • vCPU: 2 CPU
  • Reboot after installation: yes

Connection Error after Clean Installation on Debian 10/Buster

Hi people:

This is my Environment:

OS: Debian 10/Buster (clean VPS reinstalled almost right now)
Installation: Step by step of the guide.

This is my apache log error:

"
[Sun Jul 19 23:59:56.499218 2020] [php7:warn] [pid 791] [client 152.206.198.179:5457] PHP Warning: session_start(): Failed to initialize storage module: user (path: /var/lib/php/sessions) in /srv/www/openvpn-admin/include/class/class.session.php on line 64
"

Note: I have been removed referrer in the log.

scripts/login.sh: line 30: /etc/openvpn/ccd/testuser: Permission denied

Hello
Thanks for publishing this useful version
I launched the script on Debian 10 and everything is fine, but after 2 weeks there is a problem, some sites that have been filtered in my country, such as Google Lens, will not open with my server.
I do not have any specific error on the log page.
I installed the script twice from the beginning, but it still crashed after 2 weeks and did not open some sites
I welcome any guidance

regard

Screenshot_20220328_023401_com estrongs android pop_edit_59909816336691
Screenshot_20220328_023638_com android chrome_edit_60119702617909
Screenshot_20220328_023737_com android chrome_edit_60105017068953

Session: connection failed

image
OS: debian 10.7
PHP: PHP 7.3.19-1~deb10
apach2: Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

I used to install it successfully on centos7, I installed it on another server Debian 10.5, and the login page shows Session: connection failed

Installation guid

Hello, i am installed you great application on clean Debian 10, installation completed, then i am put your apache example config file and restated the server. But i am still can't access to the panel via http://serverIP
Can someone please help me.

Clinet OS

Is there is way to find from what OpenVPN client (Androin, iOS, Linux, Windows, Mac) user connected? In Pritunl it is very conveniently displayed and very informative.
Could you add a user client display to the control panel?

Installation fails - Error Insert Database Dump

Describe the bug
The database dump is missing a table. There is no create table for the following insert to work:

INSERT INTO `usergroups` (`gid`, `uid`, `gname`) VALUES
(1, 1, 1),
(2, 2, 2);
COMMIT;

ERROR 1305 (42000) at line 1: FUNCTION openvpnadmin.encrypt does not exist

[▸ checks if all required programs are installed ◂]
[▸ Setup the variables ◂]
[✓] Execution Ok: Server IP
[✓] Execution Ok: VPN Protokoll
[✓] Execution Ok: OpenVPN Port
[✓] Execution Ok: DB-Host
[✓] Execution Ok: DB-Name
[✓] Execution Ok: Root PW
[✓] Execution Ok: MySQL Username
[✓] Execution Ok: MySQL User PW
[✓] Execution Ok: Web Admin User
[✓] Execution Ok: Web Admin PW
[✓] the setup have all variables now
[▸ Setup Database ◂]
ERROR 1305 (42000) at line 1: FUNCTION openvpnadmin.encrypt does not exist
[✗] Error Insert Webadmin User

图片

install.sh

Hi, this is so cool, i want also :) but unfortunitly i have a problem :(

i filled all, and started the install

result stop:
ERROR 1305 (42000) at line 1: FUNCTION openvpnadmin.encrypt does not exist
[✗] Error Insert Webadmin User

using ubuntu 20.4 server

Fail to install

Try to install on CenterOS 8, keep getting error
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I have already set proper root password will full access. The installer changes it and then can't login.

That is, I already have MariaDB running that have many different databases in there. The installer probably assume this is a brand new system without pre-installed database?

I have websites hosted in this server, can you not assume it is only for openvpn?
The websites has their own databases....

Thanks

Simultaneous connection count setting for users.

Hello,

A very useful feature could be being able to add an account to which two devices could connect simultaneously using the same account. and being able to determine how many users can connect at the same time with one account for example (2 or more).

thanks.

Dead Project

This project dead. How's you get the version shown in screenshots??

Script doesnt work in ( centos and ubunto 20)

Describe the bug
Tring to install Openvpn-Webadmin but no dependencies are installed by script and theres a error about ROUTE

[✗] missing: route! Just use the automatic installation of missing packages.

To Reproduce
Steps to reproduce the behavior:
just use script " sudo .install.sh "

Expected behavior
Full install and any depencencies install by script.

Screenshots
image

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.