{% extends "web/web-main.html" %} {% block additional_prioritary_scripts %} {% endblock %} {% block additional_styles %} {% endblock %} {% block content %} {% set iface_status = iface.status %}
{% if iface_status == "up" %}

up

{% else %}

down

{% endif %}

{{ title }}

{% if success %} {% if warning %} {% endif %} {% elif error %} {% endif %}
Actions
{% if iface_status == "up" %} {% set button_action = "Stop" %} {% set btn_class = "danger" %} {% elif iface_status == "down" %} {% set button_action = "Start" %} {% set btn_class = "success" %} {% endif %}
{{ form.hidden_tag() }}
Configuration
{% for error in form.name.errors %} {% endfor %} {% for error in form.auto.errors %} {% endfor %} {% for error in form.description.errors %} {% endfor %} {% for error in form.gateway.errors %} {% endfor %} {% for error in form.ipv4.errors %} {% endfor %} {% for error in form.port.errors %} {% endfor %} {% for error in form.on_up.errors %} {% endfor %} {% for error in form.on_down.errors %} {% endfor %} {% for error in form.public_key.errors %} {% endfor %} {% for error in form.private_key.errors %} {% endfor %}
{{ form.name.label() }} {{ form.name(class="form-control") }}
{{ form.description.label() }} {{ form.description(class="form-control") }}
{{ form.gateway.label() }} {{ form.gateway(class="form-control") }}
{{ form.ipv4.label() }} {{ form.ipv4(class="form-control") }}
{{ form.port.label() }} {{ form.port(class="form-control") }}
{{ form.on_up.label() }} {{ form.on_up(class="form-control", rows='5') }}
{{ form.on_down.label() }} {{ form.on_down(class="form-control", rows='5') }}
{{ form.public_key.label() }} {{ form.public_key(class="form-control") }}
{{ form.private_key.label() }} {{ form.private_key(class="form-control") }}
{{ form.auto(class="custom-control-input") }} {{ form.auto.label(class="custom-control-label") }}
{{ form.submit(class="btn btn-warning") }} Download
Peers
{% for peer in iface.peers.values() %} {% if peer.description %} {% else %} {% endif %} {% if peer.ipv4_address %} {% else %} {% endif %} {% if peer.dns2 %} {% else %} {% endif %} {% if peer.nat %} {% else %} {% endif %} {% if peer.name in session_traffic and session_traffic[peer.name].last_handshake %} {% else %} {% endif %} {% endfor %}
Name Description IPv4 Primary DNS Secondary DNS NAT Last handshake Actions
{{ peer.name }}{{ peer.description }}{{ EMPTY_FIELD | safe }}{{ peer.ipv4_address }}{{ EMPTY_FIELD | safe }}{{ peer.dns1}}{{ peer.dns2 }}{{ EMPTY_FIELD | safe }}YesNo{{ session_traffic[peer.name].last_handshake.strftime("%H:%M:%S, %d/%m/%Y") }}{{ EMPTY_FIELD | safe }}
Received and transmitted data in this session
History of received and transmitted data
{% if traffic_config.enabled %}
{% else %}
Data collection is not enabled! Enable it in settings.
{% endif %}
{% endblock %} {% block additional_scripts %} {% endblock %}