module-tinc/templates/tinc.conf.erb
mh 8095174d59 automagically register tinc nodes
Now, tinc nodes automagically organize themself within their network,
so you shouldn't have to do anything anymore.
2010-12-30 14:25:28 +01:00

14 lines
324 B
Text

Name = <%= fqdn_tinc %>
AddressFamily = ipv4
Device = /dev/net/tun
#PMTU = 1440
Mode = switch
#Mode = router
BindToInterface = <%= tinc_interface.to_s %>
<% tinc_hosts.to_a.each do |connect_to_host| -%>
<%- unless connect_to_host.to_s == scope.lookupvar('fqdn') %>
ConnectTo = <%= connect_to_host %>
<%- end %>
<% end -%>