Wireguard Config Generator

This page intends to generate a config that can be saved to a server, which allows for all client config to be regenerated/updated from the servers config as required. The config is a very basic tunnel, where each client can only access the servers IP, and no routing/masquerading is allowed (ideal for single server remote access).
Server: Port:
Net: 1stIP: Clients:
ServerPrivateKey: ServerPublicKey:

Server config {{ server }}:{{ port }}

[Interface]
Address = {{ network }}.1/24
ListenPort = {{ port }}
PrivateKey = {{ serverkeys.privateKey }}
# PublicKey = {{ serverkeys.publicKey }}
# Server = {{ server }}
{{ line }}

[Peer]
## {{ value.name }}
AllowedIPs = {{ network }}.{{ client }}/32
PublicKey = {{ value.publicKey }}
# PrivateKey = {{ value.privateKey }}

Client configs (first ip: {{network}}.{{startip}}, count: {{ clientcount }})

[Interface]
## {{ value.name }}
Address = {{ network }}.{{ client }}/24
PrivateKey = {{ value.privateKey }}
[Peer]
PublicKey = {{ serverkeys.publicKey }}
AllowedIPs = {{ network }}.1/32
Endpoint = {{ server }}:{{ port }}