2f32bd6c1e
- rewrite interface templates for batman, fastd, ffrl and meshbridge - add package ethtool to role server-basic - use more ipaddr filters and get rid of unneeded variables in dict ffrl_exit_server - change ffrl_public_ipv4_nat variable to ip/prefix format - update readme files
16 lines
797 B
Django/Jinja
16 lines
797 B
Django/Jinja
#
|
|
# {{ ansible_managed }}
|
|
#
|
|
auto {{ item.key }}
|
|
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') }}
|
|
|
|
ttl 64
|
|
mtu 1400
|
|
tunnel-physdev {{ ansible_default_ipv4.interface }}
|
|
|
|
address {{ item.value.tunnel_ipv4_network | ipaddr('net') | ipaddr('1') | ipaddr('address') }}/{{ item.value.tunnel_ipv4_network | ipaddr('net') | ipaddr('prefix') }}
|
|
address {{ item.value.tunnel_ipv6_network | ipaddr('net') | ipaddr('2') | ipaddr('address') }}/{{ item.value.tunnel_ipv6_network | ipaddr('net') | ipaddr('prefix') }}
|
|
address {{ ffrl_public_ipv4_nat | ipaddr('address') }}/{{ ffrl_public_ipv4_nat | ipaddr('prefix') }}
|