{{template "prt_nav.html" .}}

WireGuard VPN User-Portal

Your VPN Profiles

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

User details

{{if not $peerUser}}

No user information available...

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

Traffic

{{if not $p.Peer}}

No Traffic data available...

{{else}}

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

{{end}}
{{$p.Config}}
{{if $p.DeactivatedAt}}
Peer is disabled!
{{end}} {{if $p.WillExpire}}
Profile expires on {{ formatDate $p.ExpiresAt}}
{{end}}

Currently listed peers: {{len .Peers}}

{{template "prt_footer.html" .}}