Giter Site home page Giter Site logo

auto_vpn's Introduction

auto_VPN

Implementation for a VPN server-client set up using OpenVPN

Server side

Put this repo inside your /var/www/ folder.

To serve the Flask application so that the clients can download their script:

  1. Apache2, easy-rsa and OpenVPN packages need to be installed in your system.
  2. Read here (http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/) how you can setup apache server to handle wsgi. This is needed to be able to run Flask framework.
  3. Run OpenVPN in server mode by running the command: sudo openvpn --config /path/to/server.conf It is better to enter absolute path to file server.conf. You can use the --daemon option to run it as a daemon as well.
  4. Copy the contents of apache_conf folder to your apache configuration. /etc/apache2/sites-enabled is the default place.
  5. Copy the contents of easy_rsa_scripts folder to your easy-rsa folder. /usr/share/easy-rsa is the default place.
  6. pbkdf2 package is borrowed from here. https://github.com/dlitz/python-pbkdf2 Please clone and run setup.py, then rename 'python-pbkdf2' folder to 'pbkdf2'.
  7. To manage users, a database needs to be created by running create_db.py.
  8. The application is ready to run. Note: Of course the internal services of the application are not included in this repository. Every website installed in /var/www/html folder is served only for clients connected to the VPN network.

Client side

Enter to the address of the server you deployed above and login with your credentials. Depending on the OS that you are running, fill the correct form with the number of minutes you want to connect. Download the bundle and run the script.

Demonstration here: https://83.212.116.170/login

auto_vpn's People

Contributors

panospet avatar

Stargazers

 avatar  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.