Update tinc/lixonet/tinc.conf.tmpl

This commit is contained in:
sump pump 2020-04-28 00:55:23 +00:00
parent 121b22d045
commit a8479fc214

View File

@ -9,33 +9,41 @@
Name = ${name} Name = ${name}
# Do not change these. Lixonet runs over port 9993 by standard. # Do not change these. Lixonet runs over port 9993 by standard.
{{ if listen_address }} {{ if len "${tinc_bind_interface:-}" }}
BindToAddress ${listen_address} BindToInterface ${tinc_bind_interface}
{{ end }} {{ end }}
{{ if listen_interface }} {{ if tinc_bind_address }}
BindToInterface ${listen_interface} BindToAddress ${tinc_bind_address}
{{ end }} {{ end }}
Port = 9994 Port = ${tinc_bind_port:-9994}
# Device is named "lixonet" by Tinc and visible directly in host kernel # Device is named "lixonet" by Tinc and visible directly in host kernel
DeviceType = tap DeviceType = ${tinc_device_type:tap}
Device = /dev/net/tun Device = ${tinc_device:/dev/net/tun}
Mode = switch Mode = ${tinc_mode:switch}
AddressFamily = ipv4 AddressFamily = ${tinc_address_family:ipv4}
# Default over-the-wire security for Lixonet. # Default over-the-wire security for Lixonet.
# Blowfish: https://en.wikipedia.org/wiki/Blowfish_(cipher) # Blowfish: https://en.wikipedia.org/wiki/Blowfish_(cipher)
# SHA1: https://en.wikipedia.org/wiki/SHA-1 # SHA1: https://en.wikipedia.org/wiki/SHA-1
Cipher = blowfish Cipher = ${tinc_cipher:blowfish}
Digest = sha1 Digest = ${tinc_digest:sha1}
# When this option is enabled, packets that cannot be sent directly to the # When this option is enabled, packets that cannot be sent directly to the
# estination node, but which would have to be forwarded by an intermediate node, # estination node, but which would have to be forwarded by an intermediate node,
# are dropped instead. When combined with the IndirectData option, packets for # 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. # nodes for which we do not have a meta connection with are also dropped.
DirectOnly = yes DirectOnly = ${tinc_direct_only:yes}
{{ if len "${tinc_connect_to:-}" }}
# Custom connect-to list
{{ range "$tinc_connect_to" | split "," }}
ConnectTo = {{.}}
{{ end }}
{{ else }}
# In the following section, list backbone/core Lxn3 nodes to connect to at boot # In the following section, list backbone/core Lxn3 nodes to connect to at boot
ConnectTo = denco_mane_lixo ConnectTo = denco_mane_lixo
ConnectTo = phxaz_nurd_lixo ConnectTo = phxaz_nurd_lixo
ConnectTo = daltx_nurd_lixo ConnectTo = daltx_nurd_lixo
{{ end }}