{% extends "base.html" %} {% load i18n %} {% block content %}

{% trans 'Peer Configuration' %}

{{ current_peer.name|default:"-" }}
{{ current_peer.persistent_keepalive }}
{% trans 'Public Key' %}
{{ current_peer.public_key }}
{% trans 'Private Key' %}
{% if current_peer.private_key %} ******************************************** {% else %} {% trans 'Not set' %} {% endif %}
{% trans 'Pre-Shared Key' %}
{% if current_peer.pre_shared_key %} ******************************************** {% else %} {% trans 'Not set' %} {% endif %}
{% trans 'No traffic history, please wait a few minutes' %}
{% trans 'Add IP Address' %}
{% for ip_address in peer_ip_list %}

{{ ip_address }}

{% if ip_address.priority == 0 %} {% trans 'Main ip address' %} {% else %} {% trans 'Priority' %}: {{ ip_address.priority }} {% endif %}

{% endfor %}
{% if current_peer.routing_template %}

{{ current_peer.routing_template.name }}

{% trans 'Routing Template' %}

{% for ip_address in current_peer.routing_template.template_routes %}

{{ ip_address }}

{% trans 'Template Route' %}

{% endfor %} {% else %}

0.0.0.0/0, ::/0

{% trans 'default route' %}

{% endif %} {% for ip_address in peer_client_ip_list %}

{{ ip_address }}

{% if ip_address.priority == 0 %} {% trans 'Main ip address' %} {% else %} {% trans 'Priority' %}: {{ ip_address.priority }} {% endif %}

{% endfor %}
{% endblock %} {% block custom_page_scripts %} {% endblock %}