{{define "vpn.html"}}{{template "base" .}}{{end}} {{define "content"}}

VPN

{{if .Error}}
{{.Error}}
{{end}} {{if .Tunnels}} {{range .Tunnels}}

{{.Name}} {{if .ListenPort}}:{{.ListenPort}}{{end}}

{{range .Addresses}}{{.}}{{end}}
{{if .Peers}}
{{range .Peers}} {{end}}
Public KeyEndpointStatusLast HandshakeRXTX
{{.PublicKeyShort}} {{if .Endpoint}}{{.Endpoint}}{{else}}{{end}} {{.Status}} {{.LastHandshake}} {{.RxBytes}} {{.TxBytes}}
{{else}}

No peers configured.

{{end}}
{{end}} {{else}}

No WireGuard tunnels configured.

{{end}}
{{end}}