Coder Social home page Coder Social logo

openvpn's Introduction

OpenVPN

Role to install, configure and update OpenVPN servers and clients.

Future Work

  • PAM support, maybe?

Requirements

  • Ansible >= 2.1
  • Ubuntu >= 16.04

Role Variables

Variables Default Description
openvpn_port 1194 default port
openvpn_proto udp default protocol
openvpn_server_dh 2048 dh keysize
openvpn_dir /etc/openvpn openvpn server directory
openvpn_keydir "{{ openvpn_dir }}/keys" openvpn server key directory
deploy_key_dir "{{ role_path }}/files }}" local key directory
local_openvpn_keydir "{{ deploy_key_dir }}" local key directory, same as deploy_key_dir
openvpn_server_dh "{{ lookup('pipe', 'basename {{ deploy_key_dir }}/dh*.pem cut -d. -f1') }}"
openvpn_tls_push True If true, it pushes secret.key to servers and clients
openvpn_is_client False If true, host is marked as client
openvpn_is_server False If true, host is marked as server

Dependencies(Optional)

This role works much better if you use clvx.easy-rsa to create your PKI.

  • clvx.easy-rsa

Example Playbook

  • Inventory

      localhost
    
  • group_vars/localhost.yml

      ---
      openvpn_is_client: True
    

or:

    ---
    openvpn_is_server: True

YOU CAN NOT ASSIGN openvpn_is_client and openvpn_is_server AT THE SAME TIME OR IT WILL FAIL.

  • Playbook:

      - hosts: localhost
        roles:
          - openvpn
    

License

GPLv3

Author Information

Luis Michael Ibarra

clvx: Twitter, IRC, Reddit

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.