{{- /*gotype: r00t2.io/gobroke/runner.TunnelResult*/ -}} {{- $res := . -}} {{- /* In addition to all functions from net, net/netip, and go4.org/netipx (with the exceptions of functions duplicated by methods which can be used by objects returned from the above-mentioned functions), the sprig func map (https://masterminds.github.io/sprig/) is also available. */ -}} {{- /* Data */ -}} {{- /* Arbitrary data may be assigned as JSON within the template, and parsed in using the fromJson function. */ -}} {{- $dataMap := fromJson `{"enp1s0": {"tag": "wan"}}` -}} {{- /* Or explicitly created via sprig. */ -}} {{- $wan_ifaces := splitList "," "enp1s0,enp2s0" -}} {{- /* Or via the various networking functionality. */ -}} {{- $pfx := $res.TunnelAfter.Routed64 -}} {{- if $res.TunnelAfter.Has48 -}} {{- $pfx = $res.TunnelAfter.Routed48 }} {{- end -}} {{- /* Settings */ -}} {{- $v4_wan := -}} {{- /* SLAAC */ -}} {{- /* Maximum seconds allowed between sending unsolicited multicast RAs. 4 < x < 1800 If using Mobile Extensions, 0.07 < x 1800 */ -}} {{- $max_inter := 60 -}} {{- /* Minimum seconds allowed between sending unsolicited multicast RAs. 3 < x < (0.75 * max_inter) If using Mobile Extensions, 0.33 < x (e.g. 0.75 * max_inter) */ -}} {{- $min_inter := 10 -}} {{- /* Minimum seconds between sending multicast RAs (solicited and unsolicited). If using Mobile Extensions, 0.03 < x */ -}} {{- $min_delay := 3 -}} {{- /* The lifetime associated with the default router in units of seconds. 0 OR max_inter < x < 9000 */ -}} {{- $lifetime := 9000 -}} {{- /* DHCPv6 */ -}} {{- /* How long the lease should last until a new one is requested. */ -}} {{- $lease_life := 21600 -}}{{- /* 6 hours == 21600 seconds */ -}} {{- /* How long the options are valid for. It generally makes sense to align these with $lease_life. It doesn't have to, but it's a good default most of the time. */ -}} {{- $opts_life := $lease_life -}} {{-/* Config */-}} # This file should be *included* in your dnsmasq configuration. # Generated by GoBroke. # See "dnsmasq --help dhcp6" for matching option identifers ("dhcp-option = ..., option6: