2022-01-03 10:33:02 +00:00
|
|
|
[Interface]
|
2024-07-30 08:53:57 +00:00
|
|
|
# {{ timestamp }} {{ user }} {{ name }}
|
2022-01-03 10:33:02 +00:00
|
|
|
# PublicKey = {{ pubkey }}
|
|
|
|
PrivateKey = # paste private key here
|
2023-12-04 09:23:41 +00:00
|
|
|
Address = {{ ip }}{% if ip6 %}, {{ ip6 }}{% endif %}
|
2023-09-15 11:59:04 +00:00
|
|
|
{%- if dns %}
|
|
|
|
DNS = {{ dns }}
|
|
|
|
{%- endif %}
|
2022-01-03 10:33:02 +00:00
|
|
|
|
|
|
|
[Peer]
|
|
|
|
Endpoint = {{ server }}:{{ port }}
|
|
|
|
PublicKey = {{ server_key }}
|
|
|
|
PersistentKeepalive = 25
|
2023-09-15 11:59:04 +00:00
|
|
|
{%- for net in allowed_nets.split() %}
|
|
|
|
AllowedIPs = {{ net }}
|
|
|
|
{%- endfor %}
|
2023-04-06 08:19:35 +00:00
|
|
|
{% if add_default -%}
|
|
|
|
AllowedIPs = 0.0.0.0/0
|
2024-09-20 04:18:12 +00:00
|
|
|
AllowedIPs = ::/1, 8000::/1
|
2022-01-03 10:33:02 +00:00
|
|
|
{%- endif %}
|