diff options
Diffstat (limited to 'roles/setup_ffrl_tunnel/templates/netctl')
-rw-r--r-- | roles/setup_ffrl_tunnel/templates/netctl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/setup_ffrl_tunnel/templates/netctl b/roles/setup_ffrl_tunnel/templates/netctl new file mode 100644 index 0000000..98e8af4 --- /dev/null +++ b/roles/setup_ffrl_tunnel/templates/netctl @@ -0,0 +1,14 @@ +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 +Address=('{{ item.ip4 }}/31' '{{ ffrl_ip4 }}/32') + +IP6=static +Address6=('{{ item.ip6 }}/64') |