Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/farynam/mfitbs-ansible-openvpn
- Owner: farynam
- License: mit
- Created: 2019-09-26T14:28:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T21:35:00.000Z (over 5 years ago)
- Last Synced: 2024-07-05T22:12:30.846Z (7 months ago)
- Topics: ansible, ansible-openvpn, multisourced, openvpn, openvpn-client, virtual-networking, vpn
- Size: 29.3 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 clientsansible-playbook provision_client.yml -i inventory.txt
###### Or Launch through Virtualbox through VM
vagrant up
vagrant ssh
...