{{template "prt_nav.html" .}}

WireGuard VPN Administration

{{template "prt_flashes.html" .}}
Interface status for {{.Device.DeviceName}}    
Public Key: {{.Device.PublicKey}}
Public Endpoint: {{.Device.DefaultEndpoint}}
Listening Port: {{.Device.ListenPort}}
Enabled Peers: {{len .Device.Interface.Peers}}
Total Peers: {{.TotalPeers}}
IP Address: {{.Device.IPsStr}}
Default allowed IP's: {{.Device.DefaultAllowedIPsStr}}
Default DNS servers: {{.Device.DNSStr}}
Default MTU: {{.Device.Mtu}}
Default Keepalive Interval: {{.Device.DefaultPersistentKeepalive}}

Current VPN Peers

M
{{range $i, $p :=.Peers}} {{$peerUser:=(userForEmail $.Users $p.Email)}} {{end}}
Identifier Public Key E-Mail IP's Handshake
{{$p.Identifier}} {{$p.PublicKey}} {{$p.Email}} {{$p.IPsStr}} {{$p.LastHandshake}} {{if eq $.Session.IsAdmin true}} {{end}}

User details

{{if not $peerUser}}

No user information available...

{{else}}
  • Firstname: {{$peerUser.Firstname}}
  • Lastname: {{$peerUser.Lastname}}
  • Phone: {{$peerUser.Phone}}
  • Mail: {{$peerUser.Email}}
{{end}}

Connection / Traffic

{{if not $p.Peer}}

No Traffic data available...

{{else}}

{{if $p.DeactivatedAt}}-{{else}} {{$p.Peer.Endpoint}}{{end}}

{{if $p.DeactivatedAt}}-{{else}} {{formatBytes $p.Peer.ReceiveBytes}} / {{formatBytes $p.Peer.TransmitBytes}}{{end}}

{{end}}
{{$p.Config}}

Currently listed peers: {{len .Peers}}

{{template "prt_footer.html" .}}