{% extends "base.html" %} {% comment %} # SPDX-License-Identifier: AGPL-3.0-or-later # ToDo: if connection is disabled, no information are visible anymore (Bug) {% endcomment %} {% load static %} {% load bootstrap %} {% load i18n %} {% block page_head %} {% endblock %} {% block content %}
{% if connection.primary %} {% endif %}
{% trans "Edit" %} {% if active_connection %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% trans "Delete" %}

{% trans "Connection" %}

{% if connection.primary %}
{% trans "Primary connection" %} {% trans "yes" %}
{% endif %}
{% trans "Name" %} {{ connection.id }}
{% if device %}

{% trans "Device" %}

{% trans "State" %} {{ device.state_string }}
{% if device.state_reason != 'none' %}
{% trans "State reason" %} {{ device.state_reason_string }}
{% endif %}
{% trans "Type" %} {{ device.type_string }}
{% trans "MAC address" %} {{ device.hw_address }}
{% trans "Interface" %} {{ device.interface_name }}
{% trans "Description" %} {{ device.description }}
{% endif %}

{% trans "Physical Link" %}

{% if device.ethernet %}
{% trans "Link state" %} {% if device.ethernet.carrier %} {% trans "cable is connected" %} {% else %} {% trans "please check cable" %} {% endif %}
{% trans "Speed" %} {% blocktrans trimmed with ethernet_speed=device.ethernet.speed %} {{ ethernet_speed }} Mbit/s {% endblocktrans %}
{% endif %} {% if connection.type == "802-11-wireless" %}
{% trans "SSID" %} {{ connection.wireless.ssid }}
{% if device %}
{% trans "Speed" %} {% blocktrans trimmed with wireless_bitrate=device.wireless.bitrate %} {{ wireless_bitrate }} Mbit/s {% endblocktrans %}
{% trans "Mode" %} {{ connection.wireless.mode_string }}
{% endif %} {% if access_point.strength %}
{% trans "Signal strength" %} {{ access_point.strength }}%
{% endif %} {% if access_point.channel %}
{% trans "Channel" %} {{ access_point.channel }}
{% endif %} {% endif %}
{% if active_connection %}

{% trans "IPv4" %}

{% if connection.ipv4.method %}
{% trans "Method" %} {{ connection.ipv4.method_string }}
{% endif %} {% for address in device.ip4.addresses %}
{% trans "IP address" %} {{ address.address }}/{{ address.prefix }}
{% endfor %} {% if device.ip4.gateway %}
{% trans "Gateway" %} {{ device.ip4.gateway }}
{% endif %} {% for server in device.ip4.nameservers %}
{% trans "DNS server" %} {{ server }}
{% endfor %} {% if active_connection.ip4.default %}
{% trans "Default" %} {% trans "yes" %}
{% endif %}

{% trans "IPv6" %}

{% if connection.ipv6.method %}
{% trans "Method" %} {{ connection.ipv6.method_string }}
{% endif %} {% for address in device.ip6.addresses %}
{% trans "IP address" %} {{ address.address }}/{{ address.prefix }}
{% endfor %} {% if device.ip6.gateway %}
{% trans "Gateway" %} {{ device.ip6.gateway }}
{% endif %} {% for server in device.ip6.nameservers %}
{% trans "DNS server" %} {{ server }}
{% endfor %} {% if active_connection.ip6.default %}
{% trans "Default" %} {% trans "yes" %}
{% endif %}
{% else %}

{% trans "Status" %}

{% trans "This connection is not active." %}

{% endif %} {% if is_resolved_installed %}

{% trans "Privacy" %}

{% trans "DNS-over-TLS" %} {{ connection.dns_over_tls_string }}
{% endif %}

{% trans "Security" %}

{% if connection.zone == "internal" %}
{% trans "Firewall zone" %} {{ connection.zone_string }}
{% elif connection.zone == "external" %}
{% trans "Firewall zone" %} {{ connection.zone_string }}
{% else %}
{% trans "Firewall zone" %} {% trans "External" %}
{% endif %}
{% endblock %}