Git Product home page Git Product logo

vpn-server's Introduction

vpn-server

Ansible Playbooks for setting up a secured remote VPN server.

Quick Start

Prerequisite: Recent version of Ansible installed on your control host.

  • Create a recent Ubuntu server, using whatever process you choose. I created an Ubuntu 17.04 x64 server in the cloud (also tested for 16.10).

  • make

  • Reboot the installed server and copy the unified myvpn.ovpn client profile from the server's /etc/openvpn/keys directory to use by your clients.

The first time you run this, it will run ./bin/setup and set your ./inventory files and variable files in ./group_vars/all/.

Use make reset to remove these files and start over.

You can also make redo if you make changes to your base variables and want to push those changes to your server.

If you want to make changes to your secrets (e.g. add/remove users or change passwords), use make edit. This task decrypts and re-encrypts your secrets using ansible-vault.

User password hashes

Refer to the Ansible docs regarding user passwords to understand how we generate the Linux user password hashes to make or modify user accounts on the VPN server.

To ensure this works, make sure that the ./bin/mkpasswd script works:

  ./bin/mkpasswd TestTheHash
  $6$JBPVsmzre/hFkiFF$RfmrOFdkXs.QNF515TIGtokseUafj[...]

If you wish to edit your secrets, use the edit task, like this:

  $ EDITOR=vi make edit
  Decryption successful

  NOTE: Run "make redo" to push your changes.

  $ make redo

References

vpn-server's People

Contributors

ksylvan avatar

Watchers

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