Skip to content
mezgani edited this page Oct 26, 2011 · 1 revision

Welcome to the ovpnview wiki! 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'*
<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,

Clone this wiki locally