friwall/web/templates/vpn/wg-fri.conf
Timotej Lazar 501a3745bb vpn: add default route for IPv6 in wg.conf template
Applied when selected during key creation. Cleave ::/0 in twain for the
whole thing sometimes works not.
2024-09-20 06:18:12 +02:00

21 lines
472 B
Plaintext

[Interface]
# {{ timestamp }} {{ user }} {{ name }}
# PublicKey = {{ pubkey }}
PrivateKey = # paste private key here
Address = {{ ip }}{% if ip6 %}, {{ ip6 }}{% endif %}
{%- if dns %}
DNS = {{ dns }}
{%- endif %}
[Peer]
Endpoint = {{ server }}:{{ port }}
PublicKey = {{ server_key }}
PersistentKeepalive = 25
{%- for net in allowed_nets.split() %}
AllowedIPs = {{ net }}
{%- endfor %}
{% if add_default -%}
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/1, 8000::/1
{%- endif %}