From 9815713717e1241e4ef4f8c4159cb8ae03a0e927 Mon Sep 17 00:00:00 2001 From: Justus Grunow Date: Sun, 15 Dec 2024 09:22:44 -0500 Subject: [PATCH] Added WG config for docker-int --- ansible/assets/docker-int/wg0.conf.j2 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ansible/assets/docker-int/wg0.conf.j2 diff --git a/ansible/assets/docker-int/wg0.conf.j2 b/ansible/assets/docker-int/wg0.conf.j2 new file mode 100644 index 0000000..2430507 --- /dev/null +++ b/ansible/assets/docker-int/wg0.conf.j2 @@ -0,0 +1,21 @@ +[Interface] +PrivateKey = {{ docker_int_wg_private_key }} +#pub V7kI33VgyxtJXRGWH0yTnbUXPqE4ZK8wQGPilVUXlWo= +Address = 10.11.19.1/24 +ListenPort = 51820 +#PostUp = iptables -t nat -A POSTROUTING -o {{ ansible_default_ipv4.interface }} -j MASQUERADE +#PostDown = iptables -D POSTROUTING -o {{ ansible_default_ipv4.interface }} -j MASQUERADE -t nat + +#MacBook +[Peer] +PublicKey = /A0WduzRrt/LwKmGm6lq/+TS/1gBekU86FSdhvUo82M= +AllowedIPs = 10.11.19.4 + +[Peer] +PublicKey = eEHA7CSOR5nha9w4SCB+tOXcuCxgkxIXtNU3xB7wZn4= +AllowedIPs = 10.11.19.5/32 + +#Phone +[Peer] +PublicKey = QJmTVggRFs6Df/snbb3Fx3PeFFeaOqy3eUruV0eIXyE= +AllowedIPs = 10.11.19.6/32