lixonet-ee/tinc/lixonet/tinc.conf.tmpl

48 lines
1.6 KiB
Cheetah
Raw Normal View History

2020-04-27 23:07:39 +00:00
# __ _____ __
# | |\_// \|\ ||_ | _)
# |__|/ \\__/| \||__ | __)
# Tinc configuration
#
# This is a configuration file for Lixonet that is already pre-configured for
# you. Please refer to your lixonet.conf file for changing parameters.
2020-04-27 21:17:05 +00:00
Name = ${name}
2020-04-27 23:07:39 +00:00
2020-04-27 23:52:39 +00:00
# Do not change these. Lixonet runs over port 9993 by standard.
2020-04-28 00:55:23 +00:00
{{ if len "${tinc_bind_interface:-}" }}
BindToInterface ${tinc_bind_interface}
2020-04-28 00:35:36 +00:00
{{ end }}
2020-04-28 00:59:15 +00:00
{{ if len "${tinc_bind_address:-}" }}
2020-04-28 00:55:23 +00:00
BindToAddress ${tinc_bind_address}
2020-04-28 00:35:36 +00:00
{{ end }}
2020-04-28 00:55:23 +00:00
Port = ${tinc_bind_port:-9994}
2020-04-27 22:39:47 +00:00
2020-04-27 23:07:39 +00:00
# Device is named "lixonet" by Tinc and visible directly in host kernel
DeviceType = ${tinc_device_type:-tap}
Device = ${tinc_device:-/dev/net/tun}
Mode = ${tinc_mode:-switch}
AddressFamily = ${tinc_address_family:-ipv4}
2020-04-27 23:07:39 +00:00
# Default over-the-wire security for Lixonet.
# Blowfish: https://en.wikipedia.org/wiki/Blowfish_(cipher)
# SHA1: https://en.wikipedia.org/wiki/SHA-1
Cipher = ${tinc_cipher:-blowfish}
Digest = ${tinc_digest:-sha1}
2020-04-27 23:07:39 +00:00
# When this option is enabled, packets that cannot be sent directly to the
# destination node, but which would have to be forwarded by an intermediate node,
2020-04-27 23:07:39 +00:00
# are dropped instead. When combined with the IndirectData option, packets for
# nodes for which we do not have a meta connection with are also dropped.
DirectOnly = ${tinc_direct_only:-yes}
2020-04-28 00:55:23 +00:00
{{ if len "${tinc_connect_to:-}" }}
# Custom connect-to list
{{ range "$tinc_connect_to" | split "," }}
ConnectTo = {{.}}
{{ end }}
{{ else }}
2020-04-28 05:46:20 +00:00
{{ range files "tinc/lixonet/hosts" }}{{ if ne . "${name}" }}{{ if ne . "server" }}
2020-04-28 05:24:42 +00:00
ConnectTo = {{.}}
2020-04-28 05:46:20 +00:00
{{ end }}{{ end }}
2020-04-28 00:55:23 +00:00
{{ end }}