ansible-ffibk/roles/service-fastd-mesh/templates/fastd-mesh.conf.j2

30 lines
720 B
Text
Raw Normal View History

#
# {{ ansible_managed }}
#
{% if debug_fastd %}
log level debug;
{% else %}
log level warn;
{% endif %}
hide ip addresses yes;
hide mac addresses yes;
method "salsa2012+umac";
2017-11-06 21:24:56 +01:00
interface "{{ item.0.id }}vpn-{{ item.1.mtu }}";
2019-03-02 18:10:48 +01:00
bind {{ ansible_default_ipv4.address | ipaddr('public') }}:10{{ item.1.id }}{{ '%02d' % item.0.domain_number }};
bind {{ ansible_default_ipv6.address | ipaddr('public') | ipwrap }}:10{{ item.1.id }}{{ '%02d' % item.0.domain_number }};
include "secret.conf";
mtu {{ item.1.mtu }};
peer group "vpn_nodes" {
include "peer_limit.conf";
include peers from "peers";
}
on up "/bin/systemctl reload networking";
2017-11-06 21:24:56 +01:00
status socket "/var/run/fastd-{{ item.0.id }}vpn-{{ item.1.mtu }}.status";