diff options
| -rw-r--r-- | roles/wireguard/templates/wg0.conf.j2 | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/roles/wireguard/templates/wg0.conf.j2 b/roles/wireguard/templates/wg0.conf.j2 index aabd031..647854a 100644 --- a/roles/wireguard/templates/wg0.conf.j2 +++ b/roles/wireguard/templates/wg0.conf.j2 @@ -4,6 +4,8 @@ Address = {{ wireguard_subnet }}  ListenPort = {{ wireguard_port }}  PrivateKey = {{ wg_priv_key['content'] | b64decode | trim }} +PostUp = ip route add local {{ wireguard_subnet }} dev eth0 +  {% for host in hostvars.keys() if not host == inventory_hostname %}  # Peer config for: {{ host }}  [Peer] | 
