change wireguard perssistant time

This commit is contained in:
vincent 2022-10-14 12:52:34 +02:00
parent 72a0539844
commit f79f326479
2 changed files with 5 additions and 5 deletions

View File

@ -3,18 +3,18 @@ ansible_host: 65.108.221.233
wireguard_address: "10.0.0.1/24" wireguard_address: "10.0.0.1/24"
wireguard_endpoint: "65.108.221.233" wireguard_endpoint: "65.108.221.233"
wireguard_persistent_keepalive: "30" wireguard_persistent_keepalive: "20"
wireguard_allowed_ips: "10.0.0.1/32" wireguard_allowed_ips: "10.0.0.1/32"
wireguard_postup: wireguard_postup:
- iptables -A FORWARD -o %i -j ACCEPT - iptables -A FORWARD -o %i -j ACCEPT
- iptables -A FORWARD -i %i -j ACCEPT - iptables -A FORWARD -i %i -j ACCEPT
- iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE - iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
wireguard_postdown: wireguard_postdown:
- iptables -D FORWARD -i %i -j ACCEPT - iptables -D FORWARD -i %i -j ACCEPT
- iptables -D FORWARD -o %i -j ACCEPT - iptables -D FORWARD -o %i -j ACCEPT
- iptables -t nat -D POSTROUTING -o enp1s0 -j MASQUERADE - iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
wireguard_unmanaged_peers: wireguard_unmanaged_peers:
phone: phone:
@ -34,7 +34,7 @@ nomad_host_networks:
- name: "private" - name: "private"
interface: wg0 interface: wg0
- name: "public" - name: "public"
interface: enp1s0 interface: eth0
- name: "default" - name: "default"
interface: wg0 interface: wg0
vault_listener_address: 10.0.0.1 vault_listener_address: 10.0.0.1

View File

@ -4,7 +4,7 @@ ansible_python_interpreter: "/usr/bin/python3"
wireguard_address: "10.0.0.6/24" wireguard_address: "10.0.0.6/24"
wireguard_byhost_allowed_ips: wireguard_byhost_allowed_ips:
merlin: 10.0.0.6,192.168.1.41 merlin: 10.0.0.6,192.168.1.41
perrsistent_keepalive: "30" perrsistent_keepalive: "20"
wireguard_endpoint: "" wireguard_endpoint: ""
wireguard_postup: wireguard_postup: