{% extends "base.html" %} {% comment %} # # This file is part of Plinth. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # # ToDo: if connection is disabled, no information are visible anymore (Bug) {% endcomment %} {% load bootstrap %} {% load i18n %} {% block page_head %} {% endblock %} {% block content %}
{% 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 }}
{% if device.state_reason != 'none' %}
{% trans "State reason" %} {{ device.state_reason }}
{% endif %}
{% trans "Type" %} {{ device.type }}
{% 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" %} {{ device.wireless.mode }}
{% endif %} {% if access_point.channel %}
{% 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 }}
{% 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 }}
{% 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 %}

{% trans "Security" %}

{% if connection.zone == "internal" %}
{% trans "Firewall zone" %}
{{ connection.zone }}
{% blocktrans trimmed %} This interface should be connected to a local network/machine. If you connect this interface to a public network, services meant to be available only internally will become available externally. This is a security risk. {% endblocktrans %}
{% elif connection.zone == "external" %}
{% trans "Firewall zone" %}
{{ connection.zone }}
{% blocktrans trimmed %} This interface should receive your Internet connection. If you connect it to a local network/machine, many services meant to available only internally will not be available. {% endblocktrans %}
{% else %}
{% trans "Firewall zone" %}
{{ connection.zone }}
{% blocktrans trimmed %} This interface is not maintained by {{ box_name }}. Its security status is unknown to {{ box_name }}. Many {{ box_name }} services may not be available on this interface. It is recommended that you deactivate or delete this connection and re-configure it. {% endblocktrans %}
{% endif %}
{% endblock %}