oukooveu.libreswan
Rol de Ansible: Libreswan
Instalar el servidor IPsec Libreswan para RedHat/CentOS.
Requisitos
Ninguno.
Variables del Rol
ipsec_connections:
test:
local_gateway_ip: '172.16.100.17'
remote_gateway_ip: '172.16.100.33'
psk: 'test123'
options:
leftsubnets: '192.168.17.0/24,192.168.220.0/24'
rightsubnet: '192.168.18.0/24'
authby: 'secret'
auto: 'start'
type: 'tunnel'
ikelifetime: '8h'
keylife: '1h'
ike: 'aes128-sha1;modp1024'
phase2alg: 'aes128-sha1;modp1024'
keyingtries: '%forever'
keyexchange: 'ike'
dpddelay: '10'
dpdtimeout: '30'
dpdaction: 'restart_by_peer'
Dependencias
Ninguna.
Ejemplo de Playbook
- hosts: servers
roles:
- libreswan
Además, puedes encontrar cómo usar este rol aquí.
Cómo probar
- Instala Vagrant, VirtualBox, pip y virtualenv (recomendado);
- La red
172.16.100.0/24
debe añadirse en/etc/vbox/networks.conf
; - Ejecuta las pruebas:
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
molecule test
Licencia
Apache 2.0
Información del Autor
Daniil Kupchenko, kupchenko@gmail.com
Instalar
ansible-galaxy install oukooveu.libreswan
Licencia
other
Descargas
4.9k
Propietario