63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
|
[broker]
|
||
|
; IP address the broker will listen and accept tunnels on
|
||
|
address={{ ansible_host }}
|
||
|
; Ports where the broker will listen on
|
||
|
port={{ tunneldigger.td_port }}
|
||
|
; Interface with that IP address
|
||
|
interface={{ tunneldigger.td_wan_interface }}
|
||
|
; Maximum number of cached cookies, required for establishing a
|
||
|
; session with the broker
|
||
|
max_cookies=1024
|
||
|
; Maximum number of tunnels that will be allowed by the broker
|
||
|
max_tunnels=150
|
||
|
; Tunnel port base
|
||
|
port_base=15000
|
||
|
; Tunnel id base
|
||
|
tunnel_id_base=100
|
||
|
; Tunnel timeout interval in seconds
|
||
|
tunnel_timeout=60
|
||
|
; Should PMTU discovery be enabled
|
||
|
pmtu_discovery=false
|
||
|
; Namespace (for running multiple brokers); note that you must also
|
||
|
; configure disjunct ports, and tunnel identifiers in order for
|
||
|
; namespacing to work
|
||
|
namespace=troisdorf
|
||
|
|
||
|
; Reject connections if there are less than N seconds since the last connection.
|
||
|
; Can be less than a second (e.g., 0.1).
|
||
|
connection_rate_limit=2
|
||
|
|
||
|
; Set PMTU to a fixed value. Use 0 for automatic PMTU discovery. A non-0 value also disables
|
||
|
; PMTU discovery on the client side, by having the server not respond to client-side PMTU
|
||
|
; discovery probes.
|
||
|
pmtu=0
|
||
|
|
||
|
; The batman device of this Hood (e.g. bat2)
|
||
|
batdev=bat0
|
||
|
|
||
|
[log]
|
||
|
; Log filename
|
||
|
filename=/var/log/tunneldigger-broker.log
|
||
|
; Verbosity
|
||
|
verbosity=DEBUG
|
||
|
; Should IP addresses be logged or not
|
||
|
log_ip_addresses=false
|
||
|
|
||
|
[hooks]
|
||
|
; Arguments to the session.{up,pre-down,down} hooks are as follows:
|
||
|
;
|
||
|
; <tunnel_id> <session_id> <interface> <mtu> <endpoint_ip> <endpoint_port> <local_port>
|
||
|
;
|
||
|
; Arguments to the session.mtu-changed hook are as follows:
|
||
|
;
|
||
|
; <tunnel_id> <session_id> <interface> <old_mtu> <new_mtu>
|
||
|
;
|
||
|
|
||
|
; Called after the tunnel interface goes up
|
||
|
session.up=/srv/tunneldigger/bataddif.sh
|
||
|
; Called just before the tunnel interface goes down
|
||
|
session.pre-down=/srv/tunneldigger/batdelif.sh
|
||
|
; Called after the tunnel interface goes down
|
||
|
session.down=
|
||
|
; Called after the tunnel MTU gets changed because of PMTU discovery
|
||
|
session.mtu-changed=
|