dashboardvpnsite-to-siteobfuscationwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboardwireguardwg-manager
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
765 B
21 lines
765 B
[Interface]
|
|
Address = {{ data.address }}/{{ data.subnet }}{%- if is_ipv6 -%},{{ data.v6_address }}/{{ data.v6_subnet }}{%- endif %}
|
|
ListenPort = {{ data.listen_port }}
|
|
PrivateKey = {{ data.private_key }}
|
|
|
|
{% if data.post_up or data.v6_post_up %}
|
|
PostUp = {{ data.post_up }}{%- if is_ipv6 -%} {{ data.v6_post_up }}{%- endif %}
|
|
{%- endif %}
|
|
{% if data.post_down or data.v6_post_down %}
|
|
PostDown = {{ data.post_down }}{%- if is_ipv6 -%} {{ data.v6_post_down }}{%- endif %}
|
|
{%- endif %}
|
|
|
|
{% for peer in data.peers %}
|
|
[Peer]
|
|
# Client Name: {{ peer.name }}
|
|
PublicKey = {{ peer.public_key }}
|
|
{%- if peer.shared_key %}
|
|
PresharedKey = {{ peer.shared_key }}
|
|
{%- endif %}
|
|
AllowedIPs = {{ peer.address }}/32{%- if is_ipv6 -%},{{ peer.v6_address }}/128{%- endif %}
|
|
{% endfor %}
|
|
|