diff --git a/cmd/wg-portal/assets/tpl/admin_create_clients.gohtml b/cmd/wg-portal/assets/tpl/admin_create_clients.gohtml new file mode 100644 index 0000000..ba8e337 --- /dev/null +++ b/cmd/wg-portal/assets/tpl/admin_create_clients.gohtml @@ -0,0 +1,73 @@ + + +
+ + +| Public Key: | +{{.Interface.PublicKey}} | +
| Public Endpoint: | +{{.Interface.PeerDefEndpoint}} | +
| Listening Port: | +{{.Interface.ListenPort}} | +
| Enabled Peers: | +{{len .InterfacePeers}} | +
| Total Peers: | +{{.TotalPeers}} | +
| IP Address: | +{{.Interface.AddressStr}} | +
| Default allowed IP's: | +{{.Interface.PeerDefAllowedIPsStr}} | +
| Default DNS servers: | +{{.Interface.PeerDefDnsStr}} | +
| Default MTU: | +{{.Interface.Mtu}} | +
| Default Keepalive Interval: | +{{.Interface.PeerDefPersistentKeepalive}} | +
| Public Key: | +{{.Interface.PublicKey}} | +
| Enabled Endpoints: | +{{len .InterfacePeers}} | +
| Total Endpoints: | +{{.TotalPeers}} | +
| IP Address: | +{{.Interface.AddressStr}} | +
| DNS servers: | +{{.Interface.DnsStr}} | +
| Default MTU: | +{{.Interface.Mtu}} | +
| + | Identifier | +Public Key | + {{if eq $.Interface.Type "server"}} +User | + {{end}} + {{if eq $.Interface.Type "server"}} +IP's | + {{end}} + {{if eq $.Interface.Type "client"}} +Endpoint | + {{end}} +Handshake | ++ |
|---|---|---|---|---|---|---|---|
| + + + + | +{{$p.Identifier}} | +{{$p.PublicKey}} | + {{if eq $.Device.Type "server"}} +{{$p.Email}} | + {{end}} + {{if eq $.Device.Type "server"}} +{{$p.IPsStr}} | + {{end}} + {{if eq $.Device.Type "client"}} +{{$p.Endpoint}} | + {{end}} +{{$p.LastHandshake}} | ++ {{if eq $.Session.IsAdmin true}} + + {{end}} + | +
|
+
+
+
+
+
+
+
+
+
+
+
+ {{if eq $.Device.Type "server"}}
+ User details+ {{if not $peerUser}} +No user information available... + {{else}} +
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}} +
+
+ {{end}}
+ {{$p.Config}}
+
+ Delete
+
+
+ {{if eq $.Device.Type "server"}}
+
+
+ |
+ |||||||
Currently listed peers: {{len $.PagedInterfacePeers}}
+| 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}} | -
| 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}} | -
| - | Identifier | -Public Key | - {{if eq $.Device.Type "server"}} -IP's | - {{end}} - {{if eq $.Device.Type "client"}} -Endpoint | - {{end}} -Handshake | -- | |
|---|---|---|---|---|---|---|---|
| - - - - | -{{$p.Identifier}} | -{{$p.PublicKey}} | - {{if eq $.Device.Type "server"}} -{{$p.Email}} | - {{end}} - {{if eq $.Device.Type "server"}} -{{$p.IPsStr}} | - {{end}} - {{if eq $.Device.Type "client"}} -{{$p.Endpoint}} | - {{end}} -{{$p.LastHandshake}} | -- {{if eq $.Session.IsAdmin true}} - - {{end}} - | -
|
-
-
-
-
-
-
-
-
-
-
-
- {{if eq $.Device.Type "server"}}
- User details- {{if not $peerUser}} -No user information available... - {{else}} -
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}} -
-
- {{end}}
- {{$p.Config}}
-
- Delete
-
-
- {{if eq $.Device.Type "server"}}
-
-
- |
- |||||||
Currently listed peers: {{len .Peers}}
-| Lastname | +Firstname | +Source | +Is Admin | ++ | |
|---|---|---|---|---|---|
| {{$u.Email}} | +{{$u.Lastname}} | +{{$u.Firstname}} | +{{$u.Source}} | +{{if $u.IsAdmin}}True{{else}}False{{end}} | ++ {{if eq $.Session.IsAdmin true}} + {{if eq $u.Source "db"}} + + {{end}} + {{end}} + | +
Currently listed users: {{len .Users}}
+| Lastname | -Firstname | -Source | -Is Admin | -- | |
|---|---|---|---|---|---|
| {{$u.Email}} | -{{$u.Lastname}} | -{{$u.Firstname}} | -{{$u.Source}} | -{{if $u.IsAdmin}}True{{else}}False{{end}} | -- {{if eq $.Session.IsAdmin true}} - {{if eq $u.Source "db"}} - - {{end}} - {{end}} - | -
Currently listed users: {{len .Users}}
-
+
|
+
-
|
-
WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN.
+Installation instructions for client software can be found on the official WireGuard website.
+ Open Instructions +WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography.
+ More details +WireGuard Portal is a simple, web based configuration portal for WireGuard.
+ More details +You can access and download your personal VPN configurations via your Userprofile.
+To find all your configured profiles click on the button below.
++ Open My Profile +
+In the administration area you can manage WireGuard peers and the server interface as well as users that are allowed to log in to the WireGuard Portal.
+To find all your configured profiles click on the button below.
++ Open WireGuard Administration + Open User Administration +
+WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN.
-Installation instructions for client software can be found on the official WireGuard website.
- Open Instructions -WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography.
- More details -WireGuard Portal is a simple, web based configuration portal for WireGuard.
- More details -You can access and download your personal VPN configurations via your Userprofile.
-To find all your configured profiles click on the button below.
-- Open My Profile -
-In the administration area you can manage WireGuard peers and the server interface as well as users that are allowed to log in to the WireGuard Portal.
-To find all your configured profiles click on the button below.
-- Open WireGuard Administration - Open User Administration -
-| + | Identifier | +Public Key | +IP's | +Handshake | +|
|---|---|---|---|---|---|
| + + + + | +{{$p.Identifier}} | +{{$p.PublicKey}} | +{{$p.Email}} | +{{$p.IPsStr}} | +{{$p.LastHandshake}} | +
|
+
+
+
+
+
+
+
+
+
+
+
+ User details+ {{if not $peerUser}} +No user information available... + {{else}} +
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}}
+
+
+
+ |
+ |||||
Currently listed peers: {{len .Peers}}
+| - | Identifier | -Public Key | -IP's | -Handshake | -|
|---|---|---|---|---|---|
| - - - - | -{{$p.Identifier}} | -{{$p.PublicKey}} | -{{$p.Email}} | -{{$p.IPsStr}} | -{{$p.LastHandshake}} | -
|
-
-
-
-
-
-
-
-
-
-
-
- User details- {{if not $peerUser}} -No user information available... - {{else}} -
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}}
-
-
-
- |
- |||||
Currently listed peers: {{len .Peers}}
-