GithubHelp home page GithubHelp logo

openvpn-auth-file's Introduction

openvpn-auth-file

Purpose

Sometimes username and password authentication is needed when connecting to openvpn server. There are plenty of plugins written in python, php, ruby, ... Nevertheless, this one is written perl and uses htpasswd format file as a database.

Dependencies

Only perl and libapache-htpasswd-perl are required.

How to use

  1. Copy the script somewhere (I personally suggest /usr/lib/openvpn).
  2. Update your openvpn config
auth-user-pass-verify "/usr/lib/openvpn/openvpn-auth-file.pl /etc/openvpn/passwd" via-env
script-security 3
client-cert-not-required
username-as-common-name
  1. Generate your username and password (you can use this site http://www.htaccesstools.com/htpasswd-generator/) and put it to /etc/openvpn/passwd
  2. Restart openvpn

Testing

This script has been tested on currently stable Debian (wheezy).

openvpn-auth-file's People

Contributors

skrivy avatar yarikdot avatar

Stargazers

Rochmad Saputra avatar Sergei Shamanov avatar  avatar Tavi avatar Mike Preston avatar Jaime Soriano Pastor avatar Dynèsh Hassanaly avatar

Watchers

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