{{define "tunnelform"}} {{$t := .T}}{{$e := $t.Errors}}{{$csrf := .CSRF}}
{{if not .New}} {{end}} {{end}} {{define "content"}} {{with .Data}}Changes are saved here and take effect when applied. Keys are made on the router and stay on it. {{if not .Live}}Live status is not available.{{end}}
{{range .Tunnels}}{{.Config.Name}}: scan this with the WireGuard app or save the text as a config file. It contains the client's private key and is shown only now; apply the settings so the router accepts it.
{{if .Config.QR}}{{.Config.Text}}
Add a tunnel first.
{{end}}Paste an existing WireGuard config (a wg-quick file or wg showconf output).
Its keys are stored on the router as root-only files and not shown again. Options the router has no
equivalent for (DNS, PostUp, ...) are skipped, and a peer that sends everything (0.0.0.0/0) has to be
changed to the networks you want through the tunnel.