From 8e244c4504ce4bf7c82ee3fbfeeb95cf2cc9dd5b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 23 Mar 2024 00:57:09 +0200 Subject: [PATCH] Update repo --- defaults/main.yml | 4 ++-- templates/wireguard_server.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9985816..7c69581 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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' \ No newline at end of file + AllowedIPs: '192.168.2.2/32' diff --git a/templates/wireguard_server.conf.j2 b/templates/wireguard_server.conf.j2 index 90f4e8d..497796b 100644 --- a/templates/wireguard_server.conf.j2 +++ b/templates/wireguard_server.conf.j2 @@ -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