2017-09-05 12:01:27 +02:00
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
|
|
|
auto {{ item.key }}
|
2017-10-03 14:37:39 +02:00
|
|
|
iface {{ item.key }} inet tunnel
|
|
|
|
mode gre
|
|
|
|
local {{ ansible_default_ipv4.address | ipaddr('public') | ipaddr('address') }}
|
|
|
|
endpoint {{ item.value.public_ipv4_address | ipaddr('public') | ipaddr('address') }}
|
2017-09-05 12:01:27 +02:00
|
|
|
|
2017-10-03 14:37:39 +02:00
|
|
|
ttl 64
|
|
|
|
mtu 1400
|
|
|
|
tunnel-physdev {{ ansible_default_ipv4.interface }}
|
2019-03-25 10:13:01 +01:00
|
|
|
ip-forward on
|
|
|
|
ip6-forward on
|
2017-09-05 12:01:27 +02:00
|
|
|
|
2017-10-06 00:15:31 +02:00
|
|
|
address {{ item.value.tunnel_ipv4_network | ipaddr('net') | ipaddr('1') | ipaddr('ip/prefix') }}
|
|
|
|
address {{ item.value.tunnel_ipv6_network | ipaddr('net') | ipaddr('2') | ipaddr('ip/prefix') }}
|