{{template "prt_nav.html" .}}

WireGuard VPN Administration

{{template "prt_flashes.html" .}}
Interface status for {{.Device.DeviceName}} {{if eq $.Device.Type "server"}}(server mode){{end}}{{if eq $.Device.Type "client"}}(client mode){{end}}        
{{if eq $.Device.Type "server"}}
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}}
{{end}} {{if eq $.Device.Type "client"}}
Public Key: {{.Device.PublicKey}}
Enabled Endpoints: {{len .Device.Interface.Peers}}
Total Endpoints: {{.TotalPeers}}
IP Address: {{.Device.IPsStr}}
DNS servers: {{.Device.DNSStr}}
Default MTU: {{.Device.Mtu}}
{{end}}
{{if eq $.Device.Type "server"}}

Current VPN Peers

{{end}} {{if eq $.Device.Type "client"}}

Current VPN Endpoints

{{end}}
{{if eq $.Device.Type "server"}} {{end}} M
{{if eq $.Device.Type "server"}} {{end}} {{if eq $.Device.Type "server"}} {{end}} {{if eq $.Device.Type "client"}} {{end}} {{range $i, $p :=.Peers}} {{$peerUser:=(userForEmail $.Users $p.Email)}} {{if eq $.Device.Type "server"}} {{end}} {{if eq $.Device.Type "server"}} {{end}} {{if eq $.Device.Type "client"}} {{end}} {{end}}
Identifier Public Key E-Mail IP's Endpoint Handshake
{{$p.Identifier}} {{$p.PublicKey}}{{$p.Email}}{{$p.IPsStr}}{{$p.Endpoint}}{{$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}}
{{if eq $.Device.Type "server"}}
{{$p.Config}}
{{end}}
{{if eq $.Device.Type "server"}} {{end}}
{{if eq $.Device.Type "server"}} {{end}}

Currently listed peers: {{len .Peers}}

{{template "prt_footer.html" .}}