friwall/web/templates/vpn/wg-fri.conf

21 lines
472 B
Plaintext
Raw Permalink Normal View History

2022-01-03 10:33:02 +00:00
[Interface]
# {{ timestamp }} {{ user }} {{ name }}
2022-01-03 10:33:02 +00:00
# PublicKey = {{ pubkey }}
PrivateKey = # paste private key here
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 %}
{% if add_default -%}
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/1, 8000::/1
2022-01-03 10:33:02 +00:00
{%- endif %}