hvpn-node3/templates/client.ini.tmpl
HeshamTB 8e798706e3 WIP: create new peers server-side
Creates a new peer server-side.
    - Gen keys
    - Allocate IP
    - Add to WG Link
    - Respond with a read wg config for the client to use
2024-03-27 09:28:13 +03:00

13 lines
320 B
Cheetah

[Interface]
Address = {{ .Address }}/24
PrivateKey = {{ .PrivateKey }}
DNS = {{$dnss := .DNS}}{{range $index, $element := .DNS}}{{if $index}}, {{end}}{{$element.String}}{{end}}
MTU = {{ .MTU }}
[Peer]
PublicKey = {{ .Peer.PublicKey }}
Endpoint = {{ .Endpoint }}
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25