You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-30Lines changed: 54 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# OpenVPN WebAdmin 1.1.0
1
+
# OpenVPN WebAdmin 1.2.0
2
2
3
3
You lock your front door. But why do you leave the back entrances open? This is the same with almost all Internet accesses to your IoT, webcams and other devices.
4
4
5
5
Create and manage your virtual private network via web browser and OpenVPN. This system is a simple and easy method for your private user manager. The system is suitable for families, shared flats or companies that value free software. If you want to become independent from big cloud providers, if you really care about the security of your data without having to reveal the communication to secret services or data collectors, you will find your way with this system.
6
6
7
7

@@ -43,58 +44,92 @@ Administrate its OpenVPN with a web interface (logs visualisations, users managi
43
44
* git
44
45
* net-tools (for the includes simple firewall)
45
46
47
+
Only __CentOS__
48
+
49
+
* tar
50
+
46
51
## Note MySQL
47
52
48
53
If you already have a database server, you can also use this one and do not need to install one locally. You only need a database and a username and password
The following message is displayed during installation:
119
+
120
+
````bash
121
+
Common Name (eg: your user, host, or server name) [Easy-RSA CA]:
89
122
````
90
123
124
+
You can simply confirm this with Enter without any input.
125
+
91
126
* Setup the web server (Apache, NGinx...) to serve the web application. Using the example below.
92
127
93
128
````code
94
-
nano /etc/apache2/sites-enabled/[ apache config ]
129
+
nano /etc/apache2/sites-enabled/[ apache config ]
95
130
````
96
131
97
-
* You must reboot the server after installation, otherwise the vpn server will not start correctly and no connection will be established!
132
+
* You must **reboot** the server after installation, otherwise the vpn server will not start correctly and no connection will be established!
98
133
99
134
* Finally, create a port forwarding on your Internet Router to this VPN-Server. Check the documentation of the router manufacturer or search the Internet for instructions.
100
135
@@ -193,17 +228,6 @@ AccessFileName .htaccess
193
228
</VirtualHost>
194
229
````
195
230
196
-
### Changes from the original (fixes from original issues)
197
-
198
-
* Support use of Mysql on different server #49
199
-
* Can it change bower to Yarn #155
200
-
* All other entries are not very helpful for the functions. However, some have been changed in this way, as you can now modify the server.conf within the system.

6
+

7
+
8
+
## Einführung DE
9
+
10
+
Sobald in Eurer config.php dieser Eintrag vorhanden ist, wird die Webseite, wie im Screenshot zu erkennen, ergänzt. Der Button __Debug__ bringt die zu überwachenden Variablen dann zur Anzeige. Sollte ein Fehler im PHP-Script sein, undefinierte Variablen oder sonstiges, wird der Button rot anfangen zu blinken. Im geöffneten Debugging-Fenster wird dann der jeweils letzte PHP-Fehler im errorhandler angezeigt, der sich dann im automatisch erweiterten Modus befindet. Überwachte Variablen könnt ihr nun ausblenden, vergrößern oder maximieren. Nach jedem Reload der Webseite werden diese aber wieder zur Anzeige gebracht.
11
+
12
+
Zusätzlich wird ein neuer Menüeintrag __Dev__ eingefügt, der eine eigene "Webseite" zur Anzeige bringt. Die Datei __dev/dev.php__ kann dann so von Euch editiert werden, als sei es eine eigenständnige Seite, die innerhalb des Main-Contents angezeigt wird.
13
+
14
+
````php
15
+
/**
16
+
* only for development!
17
+
* please comment out if no longer needed!
18
+
* comment out the "define function" to enable
19
+
*/
20
+
define('dev','dev/dev.php');
21
+
if (defined('dev')){
22
+
include_once('dev/class.dev.php');
23
+
}
24
+
````
25
+
26
+
Ihr habt an jeder Stelle im Code die Möglichkeit neue Aufrufe hinzuzufügen mit diesem Code:
Was hier noch mit __broker__ bezeichnet ist, sollte durch Euch einen aussagefähigen Namen bekommen, damit die Herkunft der zu überwachenden Variable erkannt werden kann. Gefolgt von der zu überwachenden Variablen.
33
+
34
+
Möchtet Ihr das Script zwischendrin abbrechen, um den automatischen Reload der Webseite zu unterbinden, dann genügt folgender Aufruf:
Daraufhin wird das Script abgebrochen und alle bis dahin gesammelten Variablen werden zur Anzeige gebracht.
41
+
42
+
Ein weiterer Aufruf kann über den __error_handler__ so erfolgen:
43
+
44
+
````php
45
+
trigger_error('Irgend eine Aussage: '. $variable);
46
+
````
47
+
48
+
Hierbei wird dann aber lediglich der letzte aller PHP-Fehler zur Anzeige gebracht. Ihr solltet mit diesem Einsatz vorsichtig sein, da viele PHP-Fehler sonst nicht zur Anzeige kommen werden.
49
+
50
+
## Introduction EN
51
+
52
+
As soon as this entry is available in your config.php, the website will be added as shown in the screenshot. The __Debug__ button will then display the variables to be monitored. If there is an error in the PHP script, undefined variables or other things, the button will start flashing red. In the opened debugging window the last PHP error is displayed in the errorhandler, which is then in automatically extended mode. You can now hide, enlarge or maximize monitored variables. After each reload of the web page they will be displayed again.
53
+
54
+
In addition, a new menu entry __Dev__ is added, which displays a new "web page". The file __dev/dev.php__ can then be edited by you as if it were a separate page that is displayed within the main content.
55
+
56
+
Translated with www.DeepL.com/Translator (free version)
57
+
58
+
````php
59
+
/**
60
+
* only for development!
61
+
* please comment out if no longer needed!
62
+
* comment out the "define function" to enable
63
+
*/
64
+
define('dev', 'dev/dev.php');
65
+
if (defined('dev')){
66
+
include_once('dev/class.dev.php');
67
+
}
68
+
````
69
+
70
+
You have the possibility to add new calls with this code at any place in the code:
What is marked __broker__ here should be given a meaningful name by you, so that the origin of the variable to be monitored can be identified. Followed by the variable to be monitored.
77
+
78
+
If you want to abort the script in between to stop the automatic reload of the website, the following call is sufficient:
79
+
80
+
````php
81
+
(defined('dev))? $GLOBALS['devint']->ends() : "";
82
+
````
83
+
84
+
The script is then aborted and all variables collected up to that point are displayed.
85
+
86
+
A further call can be made using the __error_handler__ like this:
87
+
88
+
````php
89
+
trigger_error('Any statement: '. $variable);
90
+
````
91
+
92
+
However, only the last of all PHP errors will be displayed. You should be careful with this use, otherwise many PHP errors will not be displayed.
93
+
94
+
## Introduction FR
95
+
96
+
Dès que cette entrée sera disponible dans votre config.php, le site sera ajouté comme indiqué dans la capture d'écran. Le bouton __Debug__ affichera alors les variables à surveiller. S'il y a une erreur dans le script PHP, des variables indéfinies ou d'autres choses, le bouton se met à clignoter en rouge. Dans la fenêtre de débogage ouverte, la dernière erreur PHP est affichée dans le gestionnaire d'erreurs, qui est alors en mode automatiquement étendu. Vous pouvez maintenant cacher, agrandir ou maximiser les variables surveillées. Après chaque rechargement de la page web, elles seront à nouveau affichées.
97
+
98
+
En outre, une nouvelle entrée de menu __Dev__ est ajoutée, qui affiche une nouvelle "page web". Le fichier __dev/dev.php__ peut ensuite être édité par vous comme s'il s'agissait d'une page séparée qui s'affiche dans le contenu principal.
99
+
100
+
````php
101
+
/**
102
+
* only for development!
103
+
* please comment out if no longer needed!
104
+
* comment out the "define function" to enable
105
+
*/
106
+
define('dev', 'dev/dev.php');
107
+
if (defined('dev')){
108
+
include_once('dev/class.dev.php');
109
+
}
110
+
````
111
+
112
+
Vous avez la possibilité d'ajouter de nouveaux appels avec ce code à n'importe quel endroit du code :
Vous devez donner un nom significatif à ce qui est marqué ici __broker__, afin que l'origine de la variable à surveiller puisse être identifiée. Suivi de la variable à surveiller.
119
+
120
+
Si vous souhaitez interrompre le script entre-temps pour arrêter la recharge automatique du site, l'appel suivant est suffisant :
Toutefois, seule la dernière de toutes les erreurs PHP sera affichée. Vous devez faire attention à cette utilisation, sinon de nombreuses erreurs PHP ne seront pas affichées.
135
+
136
+
Traduit avec www.DeepL.com/Translator (version gratuite)
Dieser Eintrag würde den Schlüssel 4 aus dem Array __errormessage__ ausgeben.
113
+
114
+
## Angepasste Fehlerseiten
115
+
116
+
Seit Version 1.2.0 habt Ihr die Möglichkeit eigene Fehlerseiten zu kreieren. Die Fehlerseiten werden immer mit dem Eintrag der Login Seite ausgerufen und müssen demnach auch im entsprechenden Ordner - siehe "Konfigurationsdatei config.php" - als error.php vorhanden sein.
This entry would output key 4 from the array __errormessage__.
113
113
114
+
## Customized error pages
115
+
116
+
Since version 1.2.0 you have the possibility to create your own error pages. The error pages are always called up with the entry of the login page and must therefore also be available in the corresponding folder - see "Configuration file config.php" - as error.php.
117
+
114
118
Translated with www.DeepL.com/Translator (free version)
0 commit comments