Skip to content

farynam/mfitbs-ansible-openvpn

Repository files navigation

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

About

Ansible tasks related to deployment openvpn server and clients.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published