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