Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farynam/mfitbs-ansible-openvpn

Ansible tasks related to deployment openvpn server and clients.
https://github.com/farynam/mfitbs-ansible-openvpn

ansible ansible-openvpn multisourced openvpn openvpn-client virtual-networking vpn

Last synced: 3 months ago
JSON representation

Ansible tasks related to deployment openvpn server and clients.

Awesome Lists containing this project

README

        

# mfitbs-ansible-openvpn

Simple private network deployment tool through Ansible based on OpenVPN.

## Requirements:
* Ansible 2.8.5

## Tested on:
* Debian 10

## Variables:

group_vars/all.yml

###### EasyRSA host
* easy_rsa_host - host on which easyrsa will be installed.
* EASY_RSA_BIN - easyrsa script path.
* ca_cn - easyrsa CA cert base file name.
* PKI_DIR - easyrsa cert repo path

###### Server host
* server_host - Openvpn server/hub inventory name.
* server_port - Openvpn server/hub port.
* client_to_client - is client to client communication allowed.

###### all
* id_type - ID type (certficate field subject-alt-name) in cert can be DNS or IP
* proto - proto for openvpm connections values:tcp,udp
* host_pki_dir - host PKI dir (where keys, certs, ... being kept).
* dh - openvpn Diffie–Hellman file name base
* dh_len - Diffie–Hellman param length.
* cipher - openvpn cipher.
* log_status - openvpn status log.
* log - openvpn log.

## Installation

mkdir roles
ansible-galaxy install --role-file requirements.yml --roles-path=roles

## Run

###### Provision server

ansible-playbook provision_server.yml -i inventory.txt

###### Provision clients

ansible-playbook provision_client.yml -i inventory.txt

###### Or Launch through Virtualbox through VM
vagrant up
vagrant ssh
...