diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2022-01-22 23:18:36 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2022-01-22 23:18:36 +0100 |
commit | 4d3268b80b55e227a1a89515842cbaaa8a13d788 (patch) | |
tree | e7b85a5214614c5dcb7c999f56c0b369011b50d3 /roles/setup_ffrl_tunnel/templates/netctl | |
parent | fb0dbf28a0e7979050858256d2040d734b282afe (diff) |
loppermann1
Diffstat (limited to 'roles/setup_ffrl_tunnel/templates/netctl')
-rw-r--r-- | roles/setup_ffrl_tunnel/templates/netctl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/setup_ffrl_tunnel/templates/netctl b/roles/setup_ffrl_tunnel/templates/netctl index 98e8af4..65bbd7c 100644 --- a/roles/setup_ffrl_tunnel/templates/netctl +++ b/roles/setup_ffrl_tunnel/templates/netctl @@ -8,7 +8,11 @@ Remote={{ item.remote }} ExecUpPost="/usr/bin/ip link set dev {{ item.name }} mtu 1400; /usr/bin/ip tunnel change {{ item.name }} ttl 64" IP=static +{% if ffrl_ip4 is defined %} Address=('{{ item.ip4 }}/31' '{{ ffrl_ip4 }}/32') +{% else %} +Address=('{{ item.ip4 }}/31') +{% endif %} IP6=static Address6=('{{ item.ip6 }}/64') |