{% extends "base.html" %} {% block title %}Interfaces - WireGuard Admin{% endblock %} {% block breadcrumbs %}/ Interfaces{% endblock %} {% block content %}

Interfaces

{% if error %}

{{ error }}

{% endif %}
{% for item in overview %} {% set iface = item.iface %}

{{ iface.name }}

{% if item.status.up %} up {% else %} down {% endif %} {% if not iface.enabled %} disabled {% endif %} {% if iface.imported %} imported {% endif %} {% if iface.peer_isolation %} isolation {% endif %}
Peers ({{ item.peers | length }})
Address
{{ server_address(iface.subnet) }}
Endpoint
{{ iface.host }}:{{ iface.listen_port }}
Online
{{ item.online }} / {{ item.peers | length }}
Traffic
RX {{ item.status.total_rx | fmt_bytes }} / TX {{ item.status.total_tx | fmt_bytes }}
Edit

Subnet ({{ iface.subnet }}) and port are fixed after creation. Public key: {{ iface.public_key }}

{% else %}

No interfaces yet. Create one below.

{% endfor %}

Add interface

With host networking the new UDP port is reachable immediately. The interface is brought up on creation.

Import existing interface

{% if candidates %} {% for c in candidates %} {% endfor %}
Name State Address Port Peers Endpoint host
{{ c.name }} {% if c.running %} running {% else %} stopped {% endif %} {% if not c.has_config %} no conf {% endif %} {{ c.address or "-" }} {{ c.listen_port or "-" }} {{ c.peer_count }}

Importing takes over the wg-quick config: the server key, peers, preshared keys and site subnets are read from the .conf (a timestamped backup is kept). Imported peers have no private key, so config download and QR are unavailable until you rotate their keys. Endpoint host is the public address clients connect to.

{% else %}

No unmanaged interfaces or configs found in the config directory.

{% endif %}
{% endblock %}