Giter VIP home page Giter VIP logo

openvpn-monitor's Introduction

OpenVPN-Monitor is a simple python program to generate html to display the
status of an OpenVPN server, including all current connections. It uses the
openvpn management console. It typically runs on the same host as the openvpn
server, though does not necessarily need to.

Adding the following line to your openvpn connection will run the management
console on 127.0.0.1 port 5555:

   management 127.0.0.1 5555

For remote managment, refer to the openvpn man pages about how to secure access
to the management interface.

The example configuration file should give some indication of how to set site
name, add a logo, etc. You can also set the default location (latitude and
longitude) for google maps. If not set, it will default to Melbourne, Australia.

It can be run from the command line to test the html is generating correctly.

To run under apache, mod_python will probably need to be enabled using e.g.

   AddHandler cgi-script .py

and added to the virtualhost/directory you are using.


Quick Install on Debian/Ubuntu:
-------------------------------

cd /var/www
git clone https://github.com/furlongm/openvpn-monitor.git
aptitude install libapache2-mod-python python-geoip python-ipaddr
a2enmod python

add the following to /etc/apache2/sites-enabled/000-default

#    AddHandler cgi-script .cgi
    <Directory "/var/www/openvpn-monitor">
        Options +ExecCGI
        AddHandler cgi-script .py
        DirectoryIndex openvpn-monitor.py
    </Directory>

/etc/init.d/apache2 restart

cd /usr/share/GeoIP/
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
mv GeoLiteCity.dat GeoIPCity.dat


LICENSE
-------

This software is licensed under the GPL, v3, a copy of which can be found in
the COPYING file.

Flags are created by Matthias Slovig ([email protected]) and are licensed under
Creative Commons License Deed Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0).
See http://flags.blogpotato.de/ for more details.

openvpn-monitor's People

Contributors

furlongm avatar

Watchers

 avatar

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.