2021-04-03 16:38:22 -04:00
|
|
|
# AUTOGENERATED FILE - PROVIDED BY WIREGUARD PORTAL
|
|
|
|
# WireGuard configuration: {{ .Peer.Identifier }}
|
|
|
|
# -WGP- PublicKey: {{ .Peer.PublicKey }}
|
|
|
|
|
|
|
|
[Interface]
|
|
|
|
|
|
|
|
# Core settings
|
|
|
|
PrivateKey = {{ .Peer.PrivateKey }}
|
|
|
|
Address = {{ .Peer.IPsStr }}
|
|
|
|
|
2021-04-05 12:38:38 -04:00
|
|
|
# Misc. settings (optional)
|
2021-04-03 16:38:22 -04:00
|
|
|
{{- if .Peer.DNSStr}}
|
|
|
|
DNS = {{ .Peer.DNSStr }}
|
|
|
|
{{- end}}
|
|
|
|
{{- if ne .Peer.Mtu 0}}
|
|
|
|
MTU = {{.Peer.Mtu}}
|
|
|
|
{{- end}}
|
|
|
|
|
|
|
|
[Peer]
|
2021-04-05 17:18:02 -04:00
|
|
|
PublicKey = {{ .Interface.PublicKey }}
|
2021-04-03 17:54:35 -04:00
|
|
|
Endpoint = {{ .Peer.Endpoint }}
|
2021-04-05 13:12:27 -04:00
|
|
|
{{- if .Peer.AllowedIPsStr}}
|
2021-04-03 16:38:22 -04:00
|
|
|
AllowedIPs = {{ .Peer.AllowedIPsStr }}
|
2021-04-05 13:12:27 -04:00
|
|
|
{{- end}}
|
2021-04-03 16:38:22 -04:00
|
|
|
{{- if .Peer.PresharedKey}}
|
|
|
|
PresharedKey = {{ .Peer.PresharedKey }}
|
|
|
|
{{- end}}
|
|
|
|
{{- if ne .Peer.PersistentKeepalive 0}}
|
|
|
|
PersistentKeepalive = {{.Peer.PersistentKeepalive}}
|
|
|
|
{{- end}}
|