-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL
50 lines (37 loc) · 1.73 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Installation notes:
Apache with modpython is required to begin installation.
On a Debian, you can get the modpython like this:
$ sudo apt-get install libapache2-mod-python
Create fetch ovpnview source
$ sudo git clone git://github.com/mezgani/ovpnview.git
Desativate Python handler on css and img directories by setting SetHandler None
$ sudo sh -c 'cat > /etc/apache2/sites-enabled/ovpnview'
<Directory "/var/www/ovpnview">
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
<Location /var/www/ovpnview/img>
SetHandler None
</Location>
<Location /var/www/ovpnview/css>
SetHandler None
</Location>
<Location /var/www/ovpnview/js>
SetHandler None
</Location>
Reload the httpd daemon
$ sudo /etc/init.d/apache2 reload
After, please make sure that the management openvpn server is active,
if not insert the line above into the openvpn server's config and restart the daemon
management 127.0.0.1 5000 /etc/openvpn/password.txt
$ sudo echo "management 127.0.0.1 5000 /etc/openvpn/password.txt" >> /etc/openvpn/server.conf
the file /etc/openvpn/password.txt must contain your favorite password.
to make ovpnview work you have also to edit the main.py file, and modify the global variables
username: "your login here"
password: "your password "
host: "the ip of the management openvpn server"
port: "the port of the management openvpn server"
vpnpasswd: "the password of the management openvpn server"
That completes the setup! You can begin viewing your new script, so point your browser to http://your-server/ovpnview/
Have fun,