Update repo

This commit is contained in:
Antonio J. Delgado 2024-03-23 00:57:09 +02:00
parent c329f8fd71
commit 8e244c4504
2 changed files with 3 additions and 3 deletions

View file

@ -1,11 +1,11 @@
---
# Default values for variables of the role
# variable_name: value
address: '192.168.2.1/24'
wg_server_address: '192.168.2.1/24'
listenport: '1928'
privatekey: ''
interface_name: wg0
clients:
- name: client1
PublicKey: 'Som3thing='
AllowedIPs: '192.168.2.2/32'
AllowedIPs: '192.168.2.2/32'

View file

@ -1,5 +1,5 @@
[Interface]
Address = {{ address }}
Address = {{ wg_server_address }}
PrivateKey = {{ privatekey }}
ListenPort = {{ listenport }}
PostUp = iptables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE; ip6tables -t nat -A POSTROUTING -o {{ public_interface }} -j MASQUERADE