summaryrefslogtreecommitdiff
path: root/roles/setup_ffrl_tunnel/templates/netctl
blob: 65bbd7ceb81d9cb68a69c6f94fd72ff1718617fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Connection=tunnel
Interface={{ item.name }}

Mode=gre
Local={{ ansible_default_ipv4.address }}
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')