1.0.7 - polski interfejs i porządki w dokumentacji
Wydanie WGTools-Extended / release (push) Successful in 8s

This commit is contained in:
asminme committed 2026-10-30 15:04:45 +01:00
1 parent 97f73a6277
commit babbdee26d
39 files changed
+142 -24356

No files matched your search

+4 -835
View File
@@ -1,841 +1,10 @@
from __future__ import annotations
import json
from pathlib import Path
HELP = {'ru': [{'id': 'dashboard',
'title': 'Главная',
'intro': 'Главная — это быстрый ответ на три вопроса: работает ли WireGuard, кто сейчас подключён и всё ли нормально с самим сервером.',
'topics': [{'title': 'С чего начать',
'paragraphs': ['В верхней панели выбран текущий интерфейс WireGuard. Если интерфейсов несколько, все страницы WGTools работают '
'именно с выбранным интерфейсом.'],
'bullets': ['«Пуск» запускает WireGuard, «Стоп» останавливает его, «Перезапуск» быстро перезапускает интерфейс.',
'После перезапуска телефоны и компьютеры обычно подключаются снова автоматически.',
'Если WireGuard остановлен, клиенты этого интерфейса не смогут подключиться.'],
'example_title': 'Пример',
'example_lines': ['wg0 · Home · 10.0.0.1/24 · UDP 51820'],
'warning': ''},
{'title': 'CPU, память, сеть и время работы',
'paragraphs': ['Эти показатели относятся ко всей машине Debian, на которой установлен WGTools.'],
'bullets': ['CPU показывает текущую загрузку процессора.',
'Память показывает занятую и доступную RAM.',
'Сеть показывает текущую скорость приёма и передачи на внешнем интерфейсе.',
'Uptime показывает, сколько сервер работает после последней перезагрузки.',
'Суточные графики помогают заметить необычную нагрузку или постоянный сетевой трафик.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Кто подключён',
'paragraphs': ['WireGuard не держит постоянную «сессию» как обычный веб-сайт. WGTools считает клиента онлайн, если его '
'последний handshake был недавно.'],
'bullets': ['Handshake — последний успешный обмен служебными пакетами WireGuard.',
'Endpoint — внешний IP и порт, с которого клиент сейчас выходит в Интернет.',
'«Никогда» означает, что сервер ещё не видел успешного подключения этого клиента.',
'Быстрый поиск фильтрует список по имени, VPN-адресу, типу и Endpoint.'],
'example_title': 'Пример',
'example_lines': ['Телефон · 10.0.0.3/32', 'Endpoint: 203.0.113.25:63275', 'Handshake: 18 сек назад'],
'warning': ''},
{'title': 'Трафик',
'paragraphs': ['WGTools хранит накопленные RX/TX отдельно от мгновенных счётчиков WireGuard, поэтому статистика не пропадает '
'после перезапуска интерфейса или сервера.'],
'bullets': ['Карточка «Трафик» показывает общий объём данных выбранного интерфейса.',
'У каждого клиента также хранится его накопленный RX/TX.',
'«Сбросить» начинает общий и клиентские счётчики заново с текущего момента.',
'RX/TX в карточке «Сеть» — это скорость прямо сейчас, а не накопленный объём.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Несколько WireGuard-интерфейсов',
'paragraphs': ['На одном сервере можно держать несколько независимых VPN, например домашний и рабочий.'],
'bullets': ['Переключение в верхней панели не изменяет конфигурацию — оно только выбирает, с каким интерфейсом сейчас работают '
'Главная, Сервер и Клиенты.',
'У каждого интерфейса свои адреса, порт, клиенты, маршруты и правила доступа.'],
'example_title': 'Пример',
'example_lines': ['wg0 · Home · 10.0.0.1/24', 'wg1 · Work · 10.0.1.1/24'],
'warning': ''}]},
{'id': 'server',
'title': 'Сервер',
'intro': 'Раздел «Сервер» отвечает за сам WireGuard: интерфейсы, маршруты, доступ к сетям, объединение нескольких WGTools через Nodes и '
'работу через публичный VPS Relay.',
'topics': [{'title': 'Что такое VPN-сеть и интерфейс WireGuard',
'paragraphs': ['Интерфейс WireGuard можно представить как отдельную виртуальную сетевую карту. У неё есть своя маленькая '
'VPN-сеть, а каждому клиенту выдаётся адрес из этой сети.'],
'bullets': ['Системное имя обычно выглядит как wg0, wg1 и т. д.',
'Понятное имя, например Home или Office, нужно только для удобства.',
'ListenPort — UDP-порт, на который подключаются клиенты.',
'MTU обычно можно оставить «Авто»; вручную его меняют только при проблемах с конкретной сетью, LTE или PPPoE.'],
'example_title': 'Пример',
'example_lines': ['VPN-сеть: 10.0.0.0/24', 'Адрес сервера: 10.0.0.1/24', 'Клиенты: 10.0.0.2, 10.0.0.3, ...', 'Порт: UDP 51820'],
'warning': ''},
{'title': 'Первый запуск и новые интерфейсы',
'paragraphs': ['На чистой Debian WGTools может установить WireGuard и создать первый интерфейс через мастер. После этого можно '
'добавить wg1, wg2 и другие.'],
'bullets': ['WGTools предлагает свободную VPN-сеть, UDP-порт и таблицу policy routing.',
'Перед созданием проверяются пересечения сетей и занятые порты.',
'Для каждого интерфейса создаются собственные ключи и конфигурация.',
'Удаление интерфейса сначала делает резервную копию и очищает связанные управляемые данные.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'NAT простыми словами',
'paragraphs': ['NAT/MASQUERADE нужен, когда VPN-клиент должен выходить в локальную сеть или Интернет от имени самого '
'WireGuard-сервера. Для домашней установки это обычно самый простой вариант.'],
'bullets': ['Если NAT включён, домашнему роутеру обычно не нужен отдельный маршрут обратно к VPN-пулу.',
'Если NAT выключен и вы хотите настоящую маршрутизацию без подмены адресов, на соседних роутерах должны быть '
'обратные маршруты.'],
'example_title': 'Пример',
'example_lines': ['Телефон 10.0.0.3 → WGTools 192.168.1.10 → Интернет', 'Домашний роутер видит источник 192.168.1.10'],
'warning': ''},
{'title': 'Маршруты и policy routing',
'paragraphs': ['Маршрут говорит Linux, через какой интерфейс или шлюз искать определённую сеть. Policy routing добавляет '
'отдельную таблицу правил для трафика VPN-клиентов.'],
'bullets': ['Обычной домашней установке отдельная policy table часто не нужна.',
'Она полезна, если VPN-клиенты должны выходить через конкретный шлюз, другой VPN или отдельный WAN.',
'WGTools показывает системные маршруты, маршруты Site-to-Site и созданные вручную маршруты отдельно.',
'Пользовательские маршруты можно добавлять, изменять и удалять из интерфейса.'],
'example_title': 'Пример',
'example_lines': ['Источник: 10.0.0.0/24', 'Таблица: 200', 'Default via: 192.168.1.1 dev eth0'],
'warning': ''},
{'title': 'Firewall и доступ к сетям',
'paragraphs': ['Firewall определяет не куда отправлять пакет, а разрешён ли ему доступ. Это отдельная вещь от маршрутов.'],
'bullets': ['Можно разрешать или запрещать доступ конкретному VPN-клиенту или сети.',
'Правила групп и индивидуальные исключения клиентов собираются WGTools автоматически.',
'Перед изменениями WGTools делает backup и откатывает конфигурацию, если WireGuard не смог запуститься.'],
'example_title': 'Пример',
'example_lines': ['10.0.0.6/32 → запретить → 192.168.1.0/24', 'Остальным клиентам локальная сеть доступна'],
'warning': ''},
{'title': 'Site-to-Site: соединяем две обычные сети',
'paragraphs': ['Site-to-Site нужен, когда через WireGuard подключается не один телефон, а целая удалённая сеть за роутером или '
'сервером.'],
'bullets': ['У такого peer указываются «Удалённые сети». WGTools автоматически создаёт для них маршруты.',
'Статус online/offline peer не удаляет его маршруты из конфигурации.',
'На удалённой стороне также должна быть настроена маршрутизация обратно через WireGuard.'],
'example_title': 'Пример',
'example_lines': ['Дом: 192.168.1.0/24',
'Офисный peer: 10.0.0.20/32',
'Сеть за офисом: 192.168.50.0/24',
'Результат: устройства дома могут обращаться к 192.168.50.x'],
'warning': ''},
{'title': 'WGTools Nodes: связываем несколько WGTools',
'paragraphs': ['Nodes соединяет несколько установок WGTools отдельным служебным WireGuard-туннелем. Один сервер становится HUB, '
'остальные подключаются к нему по одноразовому коду.'],
'bullets': ['HUB использует один номер порта: UDP для WireGuard и TCP для первоначального защищённого подключения.',
'После подключения служебная синхронизация идёт внутри интерфейса wgnode0 и не зависит от адреса веб-панели, '
'HTTPS-порта или private path.',
'При подключении WGTools предлагает найденные VPN-, Site-to-Site и локальные сети. Оставьте только те, которые '
'действительно хотите опубликовать.',
'Новая найденная сеть позже не публикуется сама — её нужно явно добавить в «Настройках узла». Если VPN-пул, Site-to-Site или LAN изменились после сохранения, WGTools покажет предупреждение и предложит проверить список.',
'Опубликованные сети разных узлов не должны пересекаться. Если, например, Home и VPS оба публикуют 10.0.0.0/24, WGTools не даст сохранить такое подключение и покажет конфликт.',
'В «Подробнее» можно посмотреть сети и клиентов удалённой панели в режиме только чтения.',
'Публикация сети делает её доступной связанным узлам, поэтому не публикуйте сети, которым не нужен межсайтовый '
'доступ.'],
'example_title': 'Пример: дом + VPS',
'example_lines': ['HUB: vpn.example.com:51950',
'Home публикует: 192.168.1.0/24',
'VPS публикует: 10.20.0.0/24',
'После pairing обе стороны получают маршруты через wgnode0'],
'warning': ''},
{'title': 'VPS Relay: когда у дома нет белого IP',
'paragraphs': ['VPS Relay нужен, если клиенты не могут напрямую достучаться до WGTools из Интернета, например из-за CGNAT. '
'Публичный VPS становится точкой входа, а сам WireGuard-сервер и правила доступа остаются на вашей машине '
'WGTools.'],
'bullets': ['Добавьте VPS по SSH: WGTools сначала проверит ОС, доступ и порты, затем установит Relay Agent.',
'Один Relay Agent может обслуживать несколько независимых WGTools — подключения и ключи изолированы.',
'После установки у поддерживаемых клиентов можно выбрать прямое подключение или подключение через Relay.',
'Удаление VPS из WGTools отключает локальную связь, но оставляет Relay Agent и сохранённый tenant на VPS, поэтому '
'его можно подключить повторно.',
'VPS Relay и Nodes решают разные задачи: Relay даёт публичную точку входа клиентам, Nodes связывает между собой '
'несколько WGTools и их сети.'],
'example_title': 'Пример',
'example_lines': ['Телефон → публичный VPS → защищённый Relay-транспорт → WGTools дома → нужная сеть'],
'warning': ''},
{'title': 'Диагностика',
'paragraphs': ['Диагностика проверяет состояние WireGuard, IP forwarding, порты, маршруты и связанные системные службы. Она '
'полезна, когда клиент не подключается или сеть за VPN недоступна.'],
'bullets': ['Сначала смотрите, запущен ли интерфейс и есть ли свежий handshake.',
'Если handshake есть, но адрес не пингуется, обычно проблема уже в маршруте, firewall или обратном пути.',
'Во вкладке Сервер → Маршрут traceroute показывает каждый отвечающий узел, средний RTT и скачок задержки относительно предыдущего отвечающего hop. Цвет линии и строки помогает сразу увидеть участок, где задержка выросла; неотвечающие служебным пробам узлы показываются нейтрально.',
'Интерактивную карту можно масштабировать и перетаскивать; нажатие на узел показывает IP, расположение, ASN/провайдера и RTT.',
'При включённой карте публичные IP узлов геолокируются через ipwho.is, тайлы загружаются с OpenStreetMap; локальные адреса на геолокацию не отправляются.',
'Traceroute измеряет задержку, а не реальную пропускную способность канала в Мбит/с.',
'Диагностика не изменяет конфигурацию сама.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Безопасное применение изменений',
'paragraphs': ['Настройки сервера, маршрутов и firewall применяются с коротким перезапуском WireGuard.'],
'bullets': ['Перед изменением создаётся резервная копия конфигурации.',
'Если новая конфигурация не запускается, WGTools старается вернуть предыдущую автоматически.',
'Активные клиенты во время перезапуска кратковременно отключатся и затем переподключатся.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Вкладка «Конфиг»',
'paragraphs': ['Это прямой редактор файла /etc/wireguard/<интерфейс>.conf для случаев, которые нельзя выразить обычными формами '
'WGTools.'],
'bullets': ['Используйте его только если понимаете синтаксис WireGuard и команды PostUp/PostDown.',
'Перед сохранением WGTools проверяет конфигурацию и создаёт backup.',
'Если WGTools обнаружит нестандартную конфигурацию, часть автоматического редактирования может быть ограничена, '
'чтобы не повредить ваши ручные правила.'],
'example_title': 'Пример',
'example_lines': ['[Interface]', 'Address = 10.0.0.1/24', 'ListenPort = 51820', '', '[Peer]', 'AllowedIPs = 10.0.0.2/32'],
'warning': 'PrivateKey, PresharedKey и другие секреты не публикуйте и не отправляйте посторонним.'}]},
{'id': 'clients',
'title': 'Клиенты',
'intro': 'Клиент — это телефон, ноутбук, роутер или другой WireGuard-peer. Здесь создаются конфиги, права доступа, сроки, расписания и '
'Site-to-Site подключения.',
'topics': [{'title': 'Обычный клиент',
'paragraphs': ['Для телефона или компьютера выбирайте тип «Клиент». WGTools выдаст свободный VPN-адрес и создаст ключи.'],
'bullets': ['Имя нужно только для удобства в панели.',
'Endpoint в готовом конфиге — адрес, по которому устройство находит ваш WireGuard-сервер.',
'DNS можно задать отдельно для клиента или получить из шаблона группы.'],
'example_title': 'Пример',
'example_lines': ['Имя: Phone', 'VPN-адрес: 10.0.0.3/32', 'Endpoint: vpn.example.com:51820'],
'warning': ''},
{'title': '«Трафик через VPN» и AllowedIPs',
'paragraphs': ['AllowedIPs в клиентском конфиге определяет, какой трафик устройство отправит в туннель. Это не то же самое, что '
'серверные права доступа.'],
'bullets': ['«Весь трафик» отправляет через VPN и Интернет, и удалённые сети.',
'Можно отправлять через VPN только нужные сети.',
'Пресет с исключением локальных сетей удобен, когда клиенту нужен VPN-Интернет, но домашний принтер или роутер '
'должны оставаться доступными напрямую.',
'Серверная политика WGTools всё равно может запретить доступ к сети, даже если она есть в AllowedIPs.'],
'example_title': 'Пример',
'example_lines': ['0.0.0.0/0 — весь IPv4-трафик через VPN', '192.168.50.0/24 — только одна удалённая сеть'],
'warning': ''},
{'title': 'Группы клиентов',
'paragraphs': ['Группа позволяет один раз настроить правила и шаблон, а затем использовать их для нескольких клиентов.'],
'bullets': ['Группа может задавать доступ в Интернет, локальные сети, дополнительные разрешения и запреты.',
'Также группа хранит шаблон клиентского конфига: маршруты, DNS и Keepalive.',
'Изменение политики группы применяется на сервере сразу, а уже установленный конфиг на телефоне не меняется сам.',
'Если нужно обновить клиентский конфиг по новому шаблону группы, примените шаблон и выдайте новый файл или QR.'],
'example_title': 'Пример',
'example_lines': ['Группа «Гости»', 'Интернет: разрешён', 'Локальная сеть: запрещена', 'Клиенты: Phone-1, Tablet-1'],
'warning': ''},
{'title': 'Индивидуальные права клиента',
'paragraphs': ['Для отдельного клиента можно наследовать политику группы или задать собственные исключения.'],
'bullets': ['Разрешение или запрет конкретного адреса у клиента имеет приоритет над общим исключением группы.',
'Так удобно открыть одному сотруднику сервер, который закрыт остальным членам группы.'],
'example_title': 'Пример',
'example_lines': ['Группа запрещает 192.168.1.0/24', 'Клиенту дополнительно разрешено 192.168.1.50/32'],
'warning': ''},
{'title': 'Site-to-Site клиент',
'paragraphs': ['Выбирайте Site-to-Site, если за peer находится целая сеть. В поле удалённых сетей перечислите сети, доступные '
'через этот peer.'],
'bullets': ['WGTools добавит эти сети в серверные маршруты автоматически.',
'Такие сети затем могут быть опубликованы через Nodes.',
'Обычному телефону или ноутбуку Site-to-Site не нужен.'],
'example_title': 'Пример',
'example_lines': ['Peer роутера: 10.0.0.20/32', 'Удалённая сеть: 192.168.50.0/24'],
'warning': ''},
{'title': 'Прямое подключение и VPS Relay',
'paragraphs': ['Если для текущего интерфейса настроен VPS Relay, клиент можно направить к серверу напрямую или через Relay.'],
'bullets': ['«Напрямую» подходит, когда WireGuard-порт сервера доступен из Интернета.',
'Relay полезен за CGNAT или когда прямой входящий UDP недоступен.',
'Права клиента и его VPN-адрес при этом остаются теми же.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'PSK, изоляция и смена ключей',
'paragraphs': ['WireGuard уже использует ключи шифрования. Дополнительный PSK добавляет ещё один общий секрет между сервером и '
'клиентом.'],
'bullets': ['Изоляция клиента запрещает ему общаться с другими VPN-адресами того же WireGuard-пула.',
'«Сменить ключи» создаёт новую ключевую пару и новый PSK, если он включён.',
'После смены ключей старый конфиг перестаёт работать — нужно выдать новый файл или QR.',
'VPN-адрес, группа, расписание и статистика при смене ключей сохраняются.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Временный доступ',
'paragraphs': ['Клиенту можно задать срок: 1, 3, 6 часов, 1 день или своё время.'],
'bullets': ['После окончания срока WGTools либо отключит доступ, сохранив клиента, либо выполнит выбранное действие.',
'Проверка сроков выполняется автоматически отдельной службой.',
'Чтобы вернуть сохранённому отключённому клиенту доступ, задайте новый срок или «Без ограничения».'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Расписание доступа',
'paragraphs': ['Расписание автоматически разрешает и блокирует клиента в выбранные дни и часы без замены его конфига.'],
'bullets': ['Используется локальное время WireGuard-сервера.',
'Можно задавать интервалы через полночь, например 22:00–06:00.',
'Когда разрешённый интервал начинается снова, WGTools возвращает тот же peer.'],
'example_title': 'Пример',
'example_lines': ['Пн–Пт: 08:00–19:00'],
'warning': ''},
{'title': 'Статус, Endpoint и трафик',
'paragraphs': ['В таблице видны последний handshake, Endpoint и накопленный RX/TX.'],
'bullets': ['Свежий handshake означает, что клиент недавно связывался с сервером.',
'Endpoint может меняться у мобильного телефона при переходе между Wi-Fi и LTE — это нормально.',
'Быстрый поиск помогает найти клиента по имени, адресу, группе или состоянию.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Конфиг и QR',
'paragraphs': ['Файл .conf подходит для компьютеров и роутеров, QR удобен для приложения WireGuard на телефоне.'],
'bullets': ['PrivateKey клиента находится внутри конфига и QR — относитесь к ним как к паролю.',
'Повторная выдача управляемого клиента использует сохранённые WGTools ключи.',
'После смены ключей обязательно выдайте новый конфиг.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Изменение и удаление',
'paragraphs': ['WGTools делает резервную копию перед изменением WireGuard-конфига и применяет изменения через безопасный '
'sync/restart.'],
'bullets': ['При удалении управляемого клиента удаляются его peer, сохранённые ключи и связанные управляемые правила.',
'Удаление клиента не стирает конфиг, который уже сохранён на телефоне, но этот конфиг больше не сможет '
'подключиться.'],
'example_title': '',
'example_lines': [],
'warning': ''}]},
{'id': 'settings',
'title': 'Настройки',
'intro': 'Здесь находятся внешний вид WGTools, резервные копии, Telegram, почта, HTTPS, пользователи, аудит и обновления.',
'topics': [{'title': 'Оформление и язык',
'paragraphs': ['Можно выбрать светлую, тёмную или системную тему и язык интерфейса.'],
'bullets': ['«Свернуть панель» оставляет в боковом меню только значки.',
'Состояние боковой панели хранится в текущем браузере и применяется сразу.',
'Язык интерфейса сохраняется в WGTools.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Частота обновления статуса',
'paragraphs': ['Интервал определяет, как часто страницы обновляют состояние клиентов и сервера. Порог Online определяет, '
'сколько времени после handshake клиент считается подключённым.'],
'bullets': [],
'example_title': 'Пример',
'example_lines': ['Обновление: 5 сек', 'Online: 180 сек'],
'warning': ''},
{'title': 'Автоматические резервные копии',
'paragraphs': ['Перед опасными изменениями WGTools сохраняет историю WireGuard-конфигураций. Это быстрый способ откатить '
'неудачное изменение одного интерфейса.'],
'bullets': ['Можно настроить количество хранимых копий.', 'Эта история не заменяет полный переносимый backup всего WGTools.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Полный backup и восстановление',
'paragraphs': ['Файл .wgtbackup предназначен для переезда на новый сервер или аварийного восстановления.'],
'bullets': ['В него входят конфигурации WireGuard, база пользователей и настроек, группы, данные управляемых клиентов, '
'Telegram/SMTP и состояние VPS Relay/Nodes, необходимое для восстановления.',
'Перед restore WGTools проверяет архив и создаёт страховочную копию текущего состояния.',
'Если применение восстановленных данных не удалось, выполняется автоматический откат.',
'После успешного восстановления текущая веб-сессия завершается — войдите пользователем из восстановленной базы.'],
'example_title': '',
'example_lines': [],
'warning': 'В .wgtbackup находятся приватные ключи, PSK, хэши паролей, Telegram-токен и SMTP-пароль. Храните файл как пароль.'},
{'title': 'Telegram Bot',
'paragraphs': ['Telegram позволяет проверить сервер и управлять WireGuard без открытия веб-панели.'],
'bullets': ['Создайте бота через @BotFather и вставьте Bot Token.',
'Включите бота и отправьте ему /start.',
'Если ваш Telegram user ID ещё не разрешён, бот покажет числовой ID. Добавьте его в список разрешённых ID.',
'Бот принимает команды управления только в личном чате.',
'Через бот доступны состояние сервера, клиенты, создание/удаление, выдача конфига/QR и управление WireGuard.'],
'example_title': 'Пример',
'example_lines': ['Endpoint по умолчанию: vpn.example.com', 'DNS: 1.1.1.1, 8.8.8.8'],
'warning': ''},
{'title': 'Почта / SMTP и восстановление пароля',
'paragraphs': ['SMTP нужен для функции «Забыли пароль?» на странице входа.'],
'bullets': ['Поддерживаются STARTTLS, TLS/SSL и SMTP без шифрования для доверенной локальной сети.',
'Логин может быть пустым, если ваш SMTP-сервер не требует авторизации.',
'Пароль сохраняется локально и обратно в браузер не возвращается.',
'Кнопка теста отправляет письмо на указанный тестовый адрес.',
'Код восстановления одноразовый, хранится в виде хэша, действует 15 минут и имеет ограничение числа попыток.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Встроенный HTTPS',
'paragraphs': ['WGTools может сам обслуживать HTTPS без Nginx, Caddy или другого reverse proxy.'],
'bullets': ['Сначала заполните домен/публичный IP, e-mail, HTTPS-порт и private path, затем нажмите «Получить / обновить сертификат». Эта кнопка одновременно сохраняет введённые настройки.',
'Пока подходящего сертификата нет, флажок «Включить встроенный HTTPS» недоступен. После успешного выпуска сертификата включите его и нажмите «Сохранить».',
'Если изменить домен или публичный IP, WGTools попросит получить сертификат для нового адреса перед включением HTTPS.',
'Для выпуска и автопродления Let’s Encrypt TCP 80 должен быть доступен из Интернета до этого сервера.',
'Панель работает на выбранном HTTPS-порту, например 443 или 8443.',
'Private path задаёт адрес панели, например /MyWGTools/. При включённом HTTPS запросы к другим путям получают 404.',
'WGTools показывает локальную занятость портов и не останавливает чужой веб-сервер.',
'Сертификат автоматически продлевается отдельным systemd timer.'],
'example_title': 'Пример',
'example_lines': ['https://wg.example.com/MyWGTools/'],
'warning': 'Private path не заменяет пароль. Не публикуйте адрес панели без необходимости и используйте сильные учётные '
'данные.'},
{'title': 'Пользователи',
'paragraphs': ['Первый пользователь создаётся при первом запуске WGTools. Дополнительных пользователей можно добавить в '
'Настройках.'],
'bullets': ['Сейчас пользователи имеют одинаковые права управления.',
'Можно менять E-mail и пароль, а также удалять пользователей.',
'Для своей учётной записи можно включить MFA через Google Authenticator или другое TOTP-приложение. При включении WGTools показывает одноразовый набор резервных кодов.',
'Если устройство с Authenticator потеряно, root может аварийно отключить MFA для выбранного пользователя через CLI wgtools.',
'Текущего пользователя и последнего оставшегося пользователя удалить нельзя.',
'Смена или восстановление пароля, включение или отключение MFA завершает старые веб-сессии этого пользователя.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Аудит',
'paragraphs': ['Аудит показывает важные действия в панели, Telegram и историю значимых подключений WireGuard.'],
'bullets': ['Для веб-действий сохраняется имя пользователя WGTools.',
'Для Telegram сохраняются @username, если доступен, и числовой Telegram ID.',
'Отмечаются изменения конфигурации, выдача клиентского конфига/QR, обновления и полезные ошибки.',
'Пароли, приватные ключи, PSK, токены и содержимое конфигов в аудит не записываются.',
'Журнал хранится ограниченное время и очищается автоматически.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Обновления WGTools',
'paragraphs': ['WGTools периодически проверяет стабильные GitHub Releases, но никогда не устанавливает обновление без вашего '
'подтверждения.'],
'bullets': ['При наличии новой версии появляется уведомление в боковой панели.',
'Перед обновлением создаётся полный .wgtbackup и отдельный архив приложения для rollback.',
'Если новая версия не запустилась, WGTools пытается автоматически вернуть предыдущую.',
'Версию можно увидеть в шапке/боковой панели и в разделе «О программе».'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Команда wgtools и аварийный доступ',
'paragraphs': ['После установки доступна команда wgtools от root. Она полезна, если веб-панель недоступна.'],
'bullets': ['Команда показывает состояние WGTools, WireGuard, Nodes, Telegram, таймеров, локального Relay Agent и текущий URL панели.',
'Из неё можно запустить, остановить или перезапустить панель и WireGuard, посмотреть логи.',
'Если ошиблись с HTTPS-портом или private path, CLI позволяет отключить встроенный HTTPS и вернуть HTTP-доступ.',
'В разделе Security можно аварийно отключить MFA для выбранного пользователя, если потерян доступ к Google Authenticator и резервным кодам.',
'Пункт «Uninstall WGTools» удаляет панель и её службы, но сохраняет обычный WireGuard и данные для возможной переустановки.',
'Пункт «FULL CLEANUP» полностью очищает этот сервер от WGTools, локального Relay и WireGuard; перед выполнением требуется ввести DELETE ALL. Удалённые Relay на других VPS не затрагиваются.'],
'example_title': 'Пример',
'example_lines': ['root@server:~# wgtools'],
'warning': ''},
{'title': 'Где хранятся данные',
'paragraphs': ['Обычно вручную редактировать эти файлы не требуется, но пути полезны для диагностики и резервного копирования.'],
'bullets': [],
'example_title': 'Основные пути',
'example_lines': ['/etc/wireguard/wg0.conf — конфигурация WireGuard',
'/var/lib/wgtools/wgtools.db — пользователи и настройки',
'/var/lib/wgtools/clients/ — данные управляемых клиентов',
'/var/lib/wgtools/backups/ — история конфигураций',
'/var/lib/wgtools/update-backups/ — rollback-копии обновлений'],
'warning': ''}]}],
'en': [{'id': 'dashboard',
'title': 'Dashboard',
'intro': 'Dashboard answers three quick questions: is WireGuard running, who is connected, and is the server itself healthy?',
'topics': [{'title': 'Where to start',
'paragraphs': ['The top bar shows the currently selected WireGuard interface. If several interfaces exist, the main WGTools '
'pages work with the selected one.'],
'bullets': ['Start brings WireGuard up, Stop takes it down, and Restart briefly restarts the interface.',
'Phones and computers normally reconnect automatically after a restart.',
'When the interface is stopped, its clients cannot connect.'],
'example_title': 'Example',
'example_lines': ['wg0 · Home · 10.0.0.1/24 · UDP 51820'],
'warning': ''},
{'title': 'CPU, memory, network and uptime',
'paragraphs': ['These values describe the whole Debian host, not just WireGuard.'],
'bullets': ['CPU shows current processor load.',
'Memory shows used and total RAM.',
'Network shows current receive/transmit rate on the external interface.',
'Uptime is the time since the operating system last booted.',
'Rolling daily charts help spot unusual load or sustained network activity.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Who is connected',
'paragraphs': ['WireGuard does not keep a traditional web-style session. WGTools considers a client online when its latest '
'handshake is recent enough.'],
'bullets': ['Handshake is the latest successful WireGuard control exchange.',
'Endpoint is the public IP and port the client currently uses.',
'Never means the server has not yet seen a successful handshake from that peer.',
'Quick search filters by name, VPN address, type and Endpoint.'],
'example_title': 'Example',
'example_lines': ['Phone · 10.0.0.3/32', 'Endpoint: 203.0.113.25:63275', 'Handshake: 18 s ago'],
'warning': ''},
{'title': 'Traffic',
'paragraphs': ['WGTools keeps persistent RX/TX totals separately from the temporary counters exposed by WireGuard, so '
'statistics survive interface and server restarts.'],
'bullets': ['The Traffic card shows accumulated data for the selected interface.',
'Each client also has its own accumulated RX/TX.',
'Reset starts the interface and client totals again from the current moment.',
'RX/TX on the Network card is the current speed, not the accumulated total.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Multiple WireGuard interfaces',
'paragraphs': ['One server can host several independent VPNs, for example Home and Work.'],
'bullets': ['Switching the top selector does not change configuration; it only chooses what Dashboard, Server and Clients '
'currently display.',
'Every interface has its own addresses, port, clients, routes and access rules.'],
'example_title': 'Example',
'example_lines': ['wg0 · Home · 10.0.0.1/24', 'wg1 · Work · 10.0.1.1/24'],
'warning': ''}]},
{'id': 'server',
'title': 'Server',
'intro': 'Server controls WireGuard itself: interfaces, routing, network access, linking multiple WGTools installations with Nodes, and '
'public access through VPS Relay.',
'topics': [{'title': 'VPN networks and WireGuard interfaces',
'paragraphs': ['Think of a WireGuard interface as a virtual network card with its own small VPN subnet. Each client receives an '
'address from that subnet.'],
'bullets': ['System names are usually wg0, wg1 and so on.',
'A display name such as Home or Office is only for convenience.',
'ListenPort is the UDP port clients connect to.',
'MTU can normally stay on Auto; set it manually only when a particular network, LTE connection or PPPoE requires '
'it.'],
'example_title': 'Example',
'example_lines': ['VPN network: 10.0.0.0/24',
'Server address: 10.0.0.1/24',
'Clients: 10.0.0.2, 10.0.0.3, ...',
'Port: UDP 51820'],
'warning': ''},
{'title': 'First setup and additional interfaces',
'paragraphs': ['On a clean Debian host, WGTools can install WireGuard and create the first interface with a guided form. You '
'can later add wg1, wg2 and more.'],
'bullets': ['WGTools suggests a free VPN subnet, UDP port and policy-routing table.',
'Overlapping networks and occupied ports are checked before creation.',
'Every interface receives its own keys and configuration.',
'Deleting an interface creates a backup first and removes its managed data.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'NAT in plain language',
'paragraphs': ['NAT/MASQUERADE is useful when a VPN client should reach the LAN or Internet using the WireGuard server as its '
'visible source. For a typical home setup this is often the simplest option.'],
'bullets': ['With NAT enabled, the home router normally does not need a separate return route to the VPN subnet.',
'With NAT disabled, true routed networking requires return routes on the neighboring routers.'],
'example_title': 'Example',
'example_lines': ['Phone 10.0.0.3 → WGTools 192.168.1.10 → Internet', 'Home router sees source 192.168.1.10'],
'warning': ''},
{'title': 'Routes and policy routing',
'paragraphs': ['A route tells Linux which interface or gateway leads to a network. Policy routing adds a separate routing table '
'for selected traffic, such as traffic from VPN clients.'],
'bullets': ['A simple home installation often does not need a separate policy table.',
'It is useful when VPN clients must use a specific gateway, another VPN or a dedicated WAN.',
'WGTools distinguishes system routes, Site-to-Site routes and manually created routes.',
'Custom routes can be added, edited and deleted in the UI.'],
'example_title': 'Example',
'example_lines': ['Source: 10.0.0.0/24', 'Table: 200', 'Default via: 192.168.1.1 dev eth0'],
'warning': ''},
{'title': 'Firewall and network access',
'paragraphs': ['Firewall rules decide whether traffic is allowed. Routing only decides where traffic goes; these are separate '
'concerns.'],
'bullets': ['You can allow or block a particular VPN client or network.',
'Group policy and per-client exceptions are generated by WGTools automatically.',
'Before applying changes, WGTools backs up the configuration and rolls back if WireGuard cannot start.'],
'example_title': 'Example',
'example_lines': ['10.0.0.6/32 → block → 192.168.1.0/24', 'Other clients can still reach the LAN'],
'warning': ''},
{'title': 'Site-to-Site: connect two normal networks',
'paragraphs': ['Site-to-Site is for a peer that represents an entire remote network instead of a single phone or laptop.'],
'bullets': ['Enter the networks behind that peer as Remote Networks and WGTools creates the routes automatically.',
'A peer going offline does not remove those configured routes.',
'The remote side also needs a return route through WireGuard.'],
'example_title': 'Example',
'example_lines': ['Home: 192.168.1.0/24',
'Office peer: 10.0.0.20/32',
'Office LAN: 192.168.50.0/24',
'Result: home devices can reach 192.168.50.x'],
'warning': ''},
{'title': 'WGTools Nodes: link several WGTools servers',
'paragraphs': ['Nodes connects several WGTools installations through a dedicated internal WireGuard tunnel. One installation '
'becomes the HUB and the others join it with a one-time code.'],
'bullets': ['The HUB uses one port number: UDP for WireGuard and TCP for the initial protected pairing.',
'After pairing, service synchronization stays inside wgnode0 and does not depend on the web-panel URL, HTTPS port '
'or private path.',
'WGTools pre-fills detected VPN, Site-to-Site and local networks. Keep only the networks you actually want to '
'publish.',
'A network discovered later is not published silently; add it explicitly in Node settings. If a VPN pool, Site-to-Site network or LAN changes after saving, WGTools shows a warning to review the list.',
'Published networks on different Nodes must not overlap. For example, if Home and VPS both publish 10.0.0.0/24, WGTools blocks the change and identifies the conflict.',
'Details shows remote networks and clients in read-only mode.',
'Publishing a network makes it reachable to connected nodes, so publish only what is required.'],
'example_title': 'Example: home + VPS',
'example_lines': ['HUB: vpn.example.com:51950',
'Home publishes: 192.168.1.0/24',
'VPS publishes: 10.20.0.0/24',
'After pairing both sides route through wgnode0'],
'warning': ''},
{'title': 'VPS Relay: when home has no public IP',
'paragraphs': ['VPS Relay helps when clients cannot reach WGTools directly from the Internet, for example behind CGNAT. A '
'public VPS becomes the entry point while the WireGuard server and access policy stay on your WGTools host.'],
'bullets': ['Add the VPS over SSH: WGTools checks the host and ports first, then installs the Relay Agent.',
'One Relay Agent can serve several independent WGTools controllers with isolated connections and keys.',
'Supported clients can then use a direct connection or VPS Relay.',
'Removing a VPS from WGTools detaches the local transport but leaves the Relay Agent and saved tenant on the VPS so '
'it can be reconnected.',
'VPS Relay and Nodes solve different problems: Relay provides a public entry point for clients; Nodes links WGTools '
'servers and their networks.'],
'example_title': 'Example',
'example_lines': ['Phone → public VPS → protected Relay transport → home WGTools → required network'],
'warning': ''},
{'title': 'Diagnostics',
'paragraphs': ['Diagnostics checks WireGuard state, IP forwarding, ports, routes and related system services. It is useful when '
'a client cannot connect or a routed network is unreachable.'],
'bullets': ['First check whether the interface is running and a fresh handshake exists.',
'If the handshake works but the destination does not, the remaining issue is usually routing, firewall or the '
'return path.',
'The Server → Trace tab shows each responding traceroute hop, average RTT and latency increase versus the previous responding hop. Route/table colors make sharp latency growth easy to spot, while hops that simply do not answer traceroute probes are shown neutrally.',
'The interactive map supports pan and zoom; clicking a hop shows its IP, approximate location, ASN/provider and RTT.',
'When the map is enabled, public hop IPs are geolocated through ipwho.is and tiles are loaded from OpenStreetMap; private addresses are not sent for geolocation.',
'Traceroute measures latency, not real link throughput in Mbit/s.',
'Diagnostics does not change configuration by itself.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Safe apply',
'paragraphs': ['Server, route and firewall changes briefly restart WireGuard when needed.'],
'bullets': ['WGTools creates a configuration backup first.',
'If the new configuration fails to start, WGTools attempts to restore the previous one automatically.',
'Connected clients briefly disconnect and normally reconnect on their own.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Config tab',
'paragraphs': ['This is a direct editor for /etc/wireguard/<interface>.conf when you need something the normal WGTools forms do '
'not expose.'],
'bullets': ['Use it only if you understand WireGuard syntax and PostUp/PostDown commands.',
'WGTools validates and backs up the file before applying it.',
'When a non-standard configuration is detected, some automatic editing can be limited to avoid damaging manual '
'rules.'],
'example_title': 'Example',
'example_lines': ['[Interface]', 'Address = 10.0.0.1/24', 'ListenPort = 51820', '', '[Peer]', 'AllowedIPs = 10.0.0.2/32'],
'warning': 'Do not publish or share PrivateKey, PresharedKey or other secrets.'}]},
{'id': 'clients',
'title': 'Clients',
'intro': 'A client can be a phone, laptop, router or any other WireGuard peer. This page creates configurations, access policies, '
'expiration rules, schedules and Site-to-Site links.',
'topics': [{'title': 'Normal client',
'paragraphs': ['Use Client for a phone or computer. WGTools allocates a free VPN address and creates the keys.'],
'bullets': ['The name is only a label inside WGTools.',
'Endpoint in the generated configuration is the address the device uses to find your WireGuard server.',
'DNS can be set per client or inherited from a group template.'],
'example_title': 'Example',
'example_lines': ['Name: Phone', 'VPN address: 10.0.0.3/32', 'Endpoint: vpn.example.com:51820'],
'warning': ''},
{'title': 'Traffic through VPN and AllowedIPs',
'paragraphs': ['AllowedIPs in the client configuration decides what the device sends into the tunnel. It is separate from '
'server-side access policy.'],
'bullets': ['All traffic sends both Internet and remote-network traffic through the VPN.',
'You can send only selected networks through the VPN.',
'The local-network exclusion preset is useful when VPN Internet is wanted but a local printer/router should remain '
'direct.',
'Server policy can still block a destination even when it appears in AllowedIPs.'],
'example_title': 'Example',
'example_lines': ['0.0.0.0/0 — all IPv4 traffic through VPN', '192.168.50.0/24 — only one remote network'],
'warning': ''},
{'title': 'Client groups',
'paragraphs': ['A group lets you define policy and a configuration template once and reuse it for several clients.'],
'bullets': ['Groups can control Internet access, local-network access and additional allow/deny exceptions.',
'They can also provide default routes, DNS and Keepalive for new client configurations.',
'Changing group server policy applies immediately, but a configuration already installed on a phone is not silently '
'rewritten.',
'Apply the current group template and issue a new file/QR when the device configuration itself must change.'],
'example_title': 'Example',
'example_lines': ['Group “Guests”', 'Internet: allowed', 'LAN: blocked', 'Members: Phone-1, Tablet-1'],
'warning': ''},
{'title': 'Per-client policy',
'paragraphs': ['A client can inherit the group policy or add its own exceptions.'],
'bullets': ['A per-client allow or deny exception takes priority over the matching group exception.',
'This is useful when one employee needs a server that remains blocked for the rest of the group.'],
'example_title': 'Example',
'example_lines': ['Group blocks 192.168.1.0/24', 'Client additionally allows 192.168.1.50/32'],
'warning': ''},
{'title': 'Site-to-Site client',
'paragraphs': ['Use Site-to-Site when a peer represents an entire network. Enter the networks reachable behind that peer as '
'Remote Networks.'],
'bullets': ['WGTools adds those networks to server routing automatically.',
'They can later be selected for publication through Nodes.',
'A normal phone or laptop does not need Site-to-Site mode.'],
'example_title': 'Example',
'example_lines': ['Router peer: 10.0.0.20/32', 'Remote network: 192.168.50.0/24'],
'warning': ''},
{'title': 'Direct connection and VPS Relay',
'paragraphs': ['When VPS Relay is installed for the selected interface, a supported client can connect directly or through '
'Relay.'],
'bullets': ['Direct is best when the server WireGuard port is reachable from the Internet.',
'Relay helps behind CGNAT or when direct inbound UDP is unavailable.',
'The client VPN address and access policy remain unchanged.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'PSK, isolation and key rotation',
'paragraphs': ['WireGuard already uses public/private keys. An optional PSK adds another shared secret between server and '
'client.'],
'bullets': ['Client isolation blocks this client from talking to other VPN addresses in the same WireGuard pool.',
'Rotate keys creates a new key pair and a new PSK when PSK is enabled.',
'The old configuration stops working after rotation, so issue a new file or QR.',
'VPN address, group, schedule and traffic history are preserved.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Temporary access',
'paragraphs': ['A client can expire after 1, 3 or 6 hours, one day, or a custom date/time.'],
'bullets': ['When the time is reached, WGTools performs the selected expiration action.',
'Expiration is enforced automatically by a background service.',
'To re-enable a saved expired client, set a new expiration time or No limit.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Access schedule',
'paragraphs': ['A schedule automatically enables and blocks a client on selected days and times without replacing its '
'configuration.'],
'bullets': ['It uses the WireGuard server local time.',
'Intervals can cross midnight, for example 22:00–06:00.',
'When the allowed period starts again, WGTools restores the same peer.'],
'example_title': 'Example',
'example_lines': ['Mon–Fri: 08:00–19:00'],
'warning': ''},
{'title': 'Status, Endpoint and traffic',
'paragraphs': ['The table shows latest handshake, Endpoint and accumulated RX/TX.'],
'bullets': ['A recent handshake means the client communicated with the server recently.',
'A mobile phone Endpoint can change when moving between Wi-Fi and LTE; that is normal.',
'Quick search filters by name, address, group and state.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Configuration and QR',
'paragraphs': ['A .conf file is convenient for computers and routers; QR is convenient for the WireGuard mobile app.'],
'bullets': ['The client PrivateKey is inside the file and QR, so treat them like a password.',
'Reissuing a managed client configuration uses keys stored by WGTools.',
'After rotating keys, always issue a new configuration.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Edit and delete',
'paragraphs': ['WGTools backs up the WireGuard configuration before managed changes and applies them safely.'],
'bullets': ['Deleting a managed client removes its peer, saved keys and related managed rules.',
'A configuration already saved on the device is not erased remotely, but it can no longer connect.'],
'example_title': '',
'example_lines': [],
'warning': ''}]},
{'id': 'settings',
'title': 'Settings',
'intro': 'Settings contains appearance, backups, Telegram, mail, HTTPS, users, audit and application updates.',
'topics': [{'title': 'Appearance and language',
'paragraphs': ['Choose light, dark or system theme and the interface language.'],
'bullets': ['Collapse sidebar keeps only icons in the left navigation.',
'Sidebar state is stored in the current browser and changes immediately.',
'The interface language is saved by WGTools.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Status refresh',
'paragraphs': ['Refresh interval controls how often pages update server/client status. Online threshold controls how long after '
'a handshake a peer is considered connected.'],
'bullets': [],
'example_title': 'Example',
'example_lines': ['Refresh: 5 s', 'Online: 180 s'],
'warning': ''},
{'title': 'Automatic configuration backups',
'paragraphs': ['Before risky changes, WGTools keeps a history of WireGuard configurations. This is a quick rollback mechanism '
'for one interface.'],
'bullets': ['You can choose how many copies are retained.', 'This history is different from the full portable WGTools backup.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Full backup and restore',
'paragraphs': ['A .wgtbackup file is for migration to a new server or disaster recovery.'],
'bullets': ['It contains WireGuard configurations, users/settings database, groups, managed-client data, Telegram/SMTP settings '
'and the state needed to restore VPS Relay/Nodes.',
'Before restore, WGTools validates the archive and makes a safety backup of the current state.',
'If applying restored data fails, WGTools automatically attempts to roll back.',
'After a successful restore the current web session is cleared; sign in with an account from the restored '
'database.'],
'example_title': '',
'example_lines': [],
'warning': 'A .wgtbackup contains private keys, PSKs, password hashes, Telegram token and SMTP password. Store it like a '
'password.'},
{'title': 'Telegram Bot',
'paragraphs': ['Telegram can check and manage WireGuard without opening the web panel.'],
'bullets': ['Create a bot with @BotFather and paste its Bot Token.',
'Enable it and send /start.',
'If your Telegram user ID is not authorized yet, the bot shows the numeric ID. Add it to the allowed list.',
'Management commands are accepted only in private chats.',
'Available actions include server status, clients, create/delete, configuration/QR reissue and WireGuard controls.'],
'example_title': 'Example',
'example_lines': ['Default Endpoint: vpn.example.com', 'DNS: 1.1.1.1, 8.8.8.8'],
'warning': ''},
{'title': 'Mail / SMTP and password recovery',
'paragraphs': ['SMTP powers the Forgot password? flow on the sign-in page.'],
'bullets': ['STARTTLS, TLS/SSL and plain SMTP for a trusted local network are supported.',
'Username can be empty when the SMTP server does not require authentication.',
'The password is stored locally and is never returned to the browser.',
'The test button sends a message to the chosen test recipient.',
'Recovery codes are one-time, hashed, valid for 15 minutes and rate-limited.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Built-in HTTPS',
'paragraphs': ['WGTools can serve HTTPS directly without Nginx, Caddy or another reverse proxy.'],
'bullets': ['First enter the domain/public IP, e-mail, HTTPS port and private path, then click Obtain / renew certificate. That action also saves the entered HTTPS settings.',
'Until a suitable certificate exists, Enable built-in HTTPS stays unavailable. After successful issuance, enable it and click Save.',
'If the domain or public IP changes, WGTools requires a certificate for the new address before HTTPS can be enabled.',
'For issuance and renewal, TCP 80 must be reachable from the Internet to this server.',
'The panel uses the chosen HTTPS port, such as 443 or 8443.',
'Private path sets the panel URL, for example /MyWGTools/. Other paths return 404 while built-in HTTPS is enabled.',
'WGTools reports local port usage and never stops an unrelated web server.',
'A systemd timer renews the certificate automatically.'],
'example_title': 'Example',
'example_lines': ['https://wg.example.com/MyWGTools/'],
'warning': 'A private path does not replace authentication. Avoid exposing the panel unnecessarily and use strong credentials.'},
{'title': 'Users',
'paragraphs': ['The first user is created during initial WGTools setup. Additional users can be added in Settings.'],
'bullets': ['Users currently have equal management rights.',
'E-mail and password can be changed and users can be removed.',
'Each user can enable MFA for their own account with Google Authenticator or another TOTP-compatible app. WGTools shows a one-time set of recovery codes when MFA is enabled.',
'If the authenticator device is lost, root can disable MFA for a selected user from the wgtools CLI.',
'The current user and the last remaining user cannot be deleted.',
'Password change/recovery and enabling/disabling MFA invalidate older web sessions for that user.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'Audit',
'paragraphs': ['Audit shows meaningful web/Telegram administration actions and useful WireGuard connection history.'],
'bullets': ['Web actions record the WGTools username.',
'Telegram actions record @username when available and the numeric Telegram ID.',
'Configuration changes, client configuration/QR disclosure, updates and useful failures are recorded.',
'Passwords, private keys, PSKs, tokens and full configuration contents are not written to Audit.',
'The journal has limited retention and is cleaned automatically.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'WGTools updates',
'paragraphs': ['WGTools periodically checks stable GitHub Releases but never installs an update without explicit confirmation.'],
'bullets': ['An update notice appears in the sidebar when a newer version exists.',
'Before updating, WGTools creates a full .wgtbackup and a separate application rollback archive.',
'If the new application does not start, WGTools attempts to restore the previous version automatically.',
'The current version is shown in the UI and under About.'],
'example_title': '',
'example_lines': [],
'warning': ''},
{'title': 'wgtools command and emergency access',
'paragraphs': ['The root command wgtools is installed with the application and is useful when the web panel is unreachable.'],
'bullets': ['It shows WGTools, WireGuard, Nodes, Telegram, timer and local Relay Agent status plus the current panel URL.',
'It can start/stop/restart the panel and WireGuard and show logs.',
'If an HTTPS port or private path was configured incorrectly, the CLI can disable built-in HTTPS and restore HTTP access.',
'The Security section can emergency-disable MFA for a selected user if Google Authenticator and recovery codes are unavailable.',
'Uninstall WGTools removes the panel and its services while keeping normal WireGuard and reusable WGTools data for a later reinstall.',
'FULL CLEANUP wipes WGTools, local Relay and WireGuard from this host after an explicit DELETE ALL confirmation; Relay Agents on other VPS hosts are never touched.'],
'example_title': 'Example',
'example_lines': ['root@server:~# wgtools'],
'warning': ''},
{'title': 'Where data is stored',
'paragraphs': ['Manual editing is normally unnecessary, but these paths are useful for troubleshooting and backup planning.'],
'bullets': [],
'example_title': 'Main paths',
'example_lines': ['/etc/wireguard/wg0.conf — WireGuard configuration',
'/var/lib/wgtools/wgtools.db — users and settings',
'/var/lib/wgtools/clients/ — managed client data',
'/var/lib/wgtools/backups/ — configuration history',
'/var/lib/wgtools/update-backups/ — update rollback archives'],
'warning': ''}]}]}
HELP = {"pl": json.loads((Path(__file__).with_name("help_locales") / "pl.json").read_text(encoding="utf-8"))}
# Larger help articles are localized separately from short UI translation keys.
# The original Russian and English help above is retained as the reference/fallback.
import json as _help_json
from pathlib import Path as _HelpPath
_HELP_TRANSLATION_PATH = _HelpPath(__file__).with_name('help_locales')
for _help_lang in ('de', 'fr', 'it', 'es', 'pl'):
_help_file = _HELP_TRANSLATION_PATH / f'{_help_lang}.json'
# Missing/corrupt optional language resources must not break panel startup.
try:
_help_sections = _help_json.loads(_help_file.read_text(encoding='utf-8'))
if ([s['id'] for s in _help_sections] != [s['id'] for s in HELP['en']]
or any(len(s['topics']) != len(reference['topics'])
for s, reference in zip(_help_sections, HELP['en']))):
raise ValueError('help sections do not match reference')
HELP[_help_lang] = _help_sections
except (OSError, ValueError, KeyError, TypeError):
# Keep English as a safe fallback; release tests require every file to be valid.
pass
def get_help_sections(language: str) -> list[dict]:
return HELP.get(language) or HELP["en"]
return HELP["pl"]
-663
View File
@@ -1,663 +0,0 @@
[
{
"id": "dashboard",
"title": "Übersicht",
"intro": "Die Übersicht beantwortet drei Fragen: Läuft WireGuard, wer ist verbunden und arbeitet der Server fehlerfrei?",
"topics": [
{
"title": "Erste Schritte",
"paragraphs": [
"Oben wird die ausgewählte WireGuard-Schnittstelle angezeigt. Bei mehreren Schnittstellen beziehen sich die WGTools-Seiten auf die jeweils ausgewählte."
],
"bullets": [
"Start aktiviert WireGuard, Stopp hält es an und Neustart startet die Schnittstelle kurz neu.",
"Telefone und Computer verbinden sich danach normalerweise automatisch erneut.",
"Bei angehaltener Schnittstelle können ihre Clients keine Verbindung aufbauen."
],
"example_title": "Beispiel",
"example_lines": [
"wg0 · Home · 10.0.0.1/24 · UDP 51820"
],
"warning": ""
},
{
"title": "CPU, Arbeitsspeicher, Netzwerk und Laufzeit",
"paragraphs": [
"Diese Angaben beziehen sich auf den gesamten Debian-Server, nicht nur auf WireGuard."
],
"bullets": [
"CPU zeigt die aktuelle Prozessorlast, Arbeitsspeicher den belegten und gesamten RAM.",
"Netzwerk zeigt die momentane Empfangs- und Senderate der externen Schnittstelle.",
"Laufzeit ist die Zeit seit dem letzten Systemstart. Diagramme der letzten 24 Stunden helfen, auffällige Last und dauerhaften Datenverkehr zu erkennen."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Wer ist verbunden?",
"paragraphs": [
"WireGuard unterhält keine Sitzung wie eine Webseite. WGTools betrachtet einen Client als online, wenn sein letzter Handshake noch nicht zu lange zurückliegt."
],
"bullets": [
"Handshake ist der letzte erfolgreiche WireGuard-Kontrollaustausch; Endpoint bezeichnet öffentliche IP-Adresse und Port des Clients.",
"„Nie“ bedeutet, dass der Server noch keinen erfolgreichen Handshake dieses Peers gesehen hat.",
"Die Schnellsuche filtert nach Name, VPN-Adresse, Typ und Endpoint."
],
"example_title": "Beispiel",
"example_lines": [
"Telefon · 10.0.0.3/32",
"Endpoint: 203.0.113.25:63275",
"Handshake: vor 18 s"
],
"warning": ""
},
{
"title": "Datenverkehr",
"paragraphs": [
"WGTools speichert kumulierte RX/TX-Werte unabhängig von den temporären WireGuard-Zählern; Statistiken bleiben daher nach Neustarts von Schnittstelle oder Server erhalten."
],
"bullets": [
"Die Datenverkehr-Karte zeigt das Gesamtvolumen der ausgewählten Schnittstelle; jeder Client hat eigene RX/TX-Summen.",
"Zurücksetzen beginnt die Zählung ab diesem Zeitpunkt erneut.",
"RX/TX auf der Netzwerk-Karte ist die momentane Geschwindigkeit, nicht das Gesamtvolumen."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Mehrere WireGuard-Schnittstellen",
"paragraphs": [
"Ein Server kann mehrere unabhängige VPNs bereitstellen, etwa für Zuhause und Büro."
],
"bullets": [
"Der Wechsel oben verändert keine Konfiguration, sondern wählt nur, welche Schnittstelle Übersicht, Server und Clients anzeigen.",
"Jede Schnittstelle besitzt eigene Adressen, Ports, Clients, Routen und Zugriffsregeln."
],
"example_title": "Beispiel",
"example_lines": [
"wg0 · Home · 10.0.0.1/24",
"wg1 · Arbeit · 10.0.1.1/24"
],
"warning": ""
}
]
},
{
"id": "server",
"title": "Server",
"intro": "Hier werden WireGuard-Schnittstellen, Routing, Netzwerkzugriff, verknüpfte WGTools-Server über Nodes und der öffentliche Zugriff über VPS Relay verwaltet.",
"topics": [
{
"title": "VPN-Netze und WireGuard-Schnittstellen",
"paragraphs": [
"Eine WireGuard-Schnittstelle ist wie eine virtuelle Netzwerkkarte mit eigenem VPN-Subnetz. Jeder Client erhält daraus eine Adresse."
],
"bullets": [
"Systemnamen heißen gewöhnlich wg0, wg1 usw.; ein Anzeigename wie Home oder Office dient nur der Übersicht.",
"ListenPort ist der UDP-Port, über den Clients den Server erreichen.",
"MTU kann normalerweise auf Auto bleiben. Eine manuelle Einstellung ist nur bei Problemen mit bestimmten Netzen, LTE oder PPPoE sinnvoll."
],
"example_title": "Beispiel",
"example_lines": [
"VPN-Netz: 10.0.0.0/24",
"Serveradresse: 10.0.0.1/24",
"Clients: 10.0.0.2, 10.0.0.3, ...",
"Port: UDP 51820"
],
"warning": ""
},
{
"title": "Ersteinrichtung und weitere Schnittstellen",
"paragraphs": [
"Auf einem frischen Debian-System kann WGTools WireGuard installieren und die erste Schnittstelle per Assistent anlegen. Weitere wie wg1 und wg2 lassen sich später hinzufügen."
],
"bullets": [
"WGTools schlägt ein freies VPN-Subnetz, einen UDP-Port und eine Policy-Routing-Tabelle vor.",
"Überschneidungen von Netzen und bereits belegte Ports werden vorab geprüft.",
"Jede Schnittstelle bekommt eigene Schlüssel und Konfiguration. Vor dem Löschen wird eine Sicherung erstellt und die zugehörigen verwalteten Daten werden entfernt."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "NAT einfach erklärt",
"paragraphs": [
"NAT/MASQUERADE ist hilfreich, wenn ein VPN-Client LAN oder Internet mit der Quelladresse des WireGuard-Servers erreichen soll. Für Heimnetze ist das oft die einfachste Lösung."
],
"bullets": [
"Mit NAT benötigt der Heimrouter normalerweise keine gesonderte Rückroute zum VPN-Subnetz.",
"Ohne NAT müssen benachbarte Router die Rückroute für das VPN-Netz kennen."
],
"example_title": "Beispiel",
"example_lines": [
"Telefon 10.0.0.3 → WGTools 192.168.1.10 → Internet",
"Heimrouter sieht Quelladresse 192.168.1.10"
],
"warning": ""
},
{
"title": "Routen und Policy Routing",
"paragraphs": [
"Eine Route legt fest, über welche Schnittstelle oder welches Gateway Linux ein Netz erreicht. Policy Routing ermöglicht gesonderte Routing-Tabellen, zum Beispiel für VPN-Clientverkehr."
],
"bullets": [
"Einfache Heiminstallationen benötigen häufig keine eigene Policy-Tabelle.",
"Sie ist nützlich bei einem bestimmten Gateway, einem weiteren VPN oder einem eigenen WAN.",
"WGTools trennt System-, Site-to-Site- und manuelle Routen. Eigene Routen können angelegt, bearbeitet und gelöscht werden."
],
"example_title": "Beispiel",
"example_lines": [
"Quelle: 10.0.0.0/24",
"Tabelle: 200",
"Default via: 192.168.1.1 dev eth0"
],
"warning": ""
},
{
"title": "Firewall und Netzwerkzugriff",
"paragraphs": [
"Die Firewall entscheidet, ob Verkehr erlaubt ist; Routing bestimmt lediglich den Weg. Das sind unterschiedliche Funktionen."
],
"bullets": [
"Der Zugang einzelner VPN-Clients zu bestimmten Netzen kann erlaubt oder gesperrt werden.",
"WGTools erzeugt Gruppenregeln und clientbezogene Ausnahmen automatisch.",
"Vor Änderungen wird die Konfiguration gesichert; wenn WireGuard nicht startet, wird die vorherige Version wiederhergestellt."
],
"example_title": "Beispiel",
"example_lines": [
"10.0.0.6/32 → sperren → 192.168.1.0/24",
"Andere Clients können das LAN weiterhin erreichen"
],
"warning": ""
},
{
"title": "Site-to-Site: zwei Netze verbinden",
"paragraphs": [
"Site-to-Site eignet sich für einen Peer, hinter dem ein ganzes entferntes Netz liegt, statt nur ein Telefon oder Laptop."
],
"bullets": [
"Trage diese Netze unter Entfernte Netze ein; WGTools legt die Routen automatisch an.",
"Wenn der Peer offline geht, bleiben die konfigurierten Routen bestehen.",
"Auch die Gegenseite benötigt eine Rückroute über WireGuard."
],
"example_title": "Beispiel",
"example_lines": [
"Home: 192.168.1.0/24",
"Büro-Peer: 10.0.0.20/32",
"Büro-LAN: 192.168.50.0/24",
"Ergebnis: Heimgeräte erreichen 192.168.50.x"
],
"warning": ""
},
{
"title": "Nodes: WGTools-Server verknüpfen",
"paragraphs": [
"Nodes verbindet mehrere WGTools-Installationen über einen eigenen internen WireGuard-Tunnel. Ein Server ist der HUB; andere werden mit einem einmaligen Code gekoppelt."
],
"bullets": [
"Der HUB verwendet dieselbe Portnummer für UDP (WireGuard) und TCP (geschützte Erstkopplung). Danach erfolgt die Synchronisierung über wgnode0, unabhängig von Panel-URL, HTTPS-Port oder privatem Pfad.",
"WGTools erkennt VPN-, Site-to-Site- und lokale Netze. Veröffentliche nur benötigte Netze. Später erkannte Netze müssen ausdrücklich hinzugefügt werden; Änderungen bestehender Netze lösen einen Hinweis zur Überprüfung aus.",
"Veröffentlichte Netze unterschiedlicher Nodes dürfen sich nicht überschneiden, z. B. 10.0.0.0/24 an zwei Standorten. Bei Konflikten wird die Änderung blockiert.",
"Details zeigt entfernte Netze und Clients schreibgeschützt. Jede Veröffentlichung macht das Netz für verbundene Nodes erreichbar — gib nur das Nötige frei."
],
"example_title": "Beispiel: home + VPS",
"example_lines": [
"HUB: vpn.example.com:51950",
"Heimnetz veröffentlicht: 192.168.1.0/24",
"VPS veröffentlicht: 10.20.0.0/24",
"Nach der Kopplung routen beide Seiten über wgnode0"
],
"warning": ""
},
{
"title": "VPS Relay: wenn zuhause eine öffentliche IP fehlt",
"paragraphs": [
"VPS Relay hilft bei CGNAT oder wenn Clients den Heimserver nicht direkt erreichen. Ein öffentlicher VPS dient als Einstiegspunkt; WireGuard-Server und Zugriffsregeln bleiben auf dem WGTools-Host."
],
"bullets": [
"VPS über SSH hinzufügen: WGTools prüft Host und Ports und installiert anschließend den Relay Agent.",
"Ein Agent kann mehrere unabhängige WGTools-Controller mit getrennten Schlüsseln und Verbindungen bedienen.",
"Unterstützte Clients können direkt oder über Relay verbinden. Wird der VPS aus WGTools entfernt, wird nur der lokale Transport getrennt; Agent und gespeicherter Mandant bleiben für eine spätere Wiederverbindung bestehen.",
"Relay bietet einen öffentlichen Zugang für Clients, Nodes verknüpft dagegen WGTools-Server und deren Netze."
],
"example_title": "Beispiel",
"example_lines": [
"Telefon → öffentlicher VPS → geschützter Relay-Transport → WGTools zuhause → gewünschtes Netz"
],
"warning": ""
},
{
"title": "Diagnose",
"paragraphs": [
"Die Diagnose kontrolliert WireGuard, IP-Weiterleitung, Ports, Routen und Dienste. Sie hilft, wenn ein Client nicht verbinden oder ein Zielnetz nicht erreichen kann."
],
"bullets": [
"Prüfe zuerst die laufende Schnittstelle und einen aktuellen Handshake. Klappt der Handshake, liegt das Problem häufig bei Routing, Firewall oder Rückweg.",
"Server → Route zeigt Traceroute-Hops, mittlere RTT und die Zunahme der Verzögerung. Fehlende Traceroute-Antworten werden neutral angezeigt, nicht als eindeutiger Ausfall.",
"Die interaktive Karte lässt sich verschieben und zoomen; ein Klick zeigt IP, ungefähren Standort, ASN/Anbieter und RTT.",
"Bei aktivierter Karte werden öffentliche Hop-IPs über ipwho.is geolokalisiert und Kartenkacheln von OpenStreetMap geladen; private IPs werden nicht zur Geolokalisierung gesendet. Traceroute misst keine Bandbreite in Mbit/s.",
"Die Diagnose selbst ändert keine Konfiguration."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Änderungen sicher anwenden",
"paragraphs": [
"Änderungen an Server, Routen und Firewall können WireGuard kurz neu starten."
],
"bullets": [
"WGTools erstellt zuerst eine Konfigurationssicherung.",
"Falls die neue Konfiguration nicht startet, versucht WGTools automatisch zur vorherigen zurückzukehren.",
"Clients können kurz getrennt werden und verbinden sich üblicherweise selbst wieder."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Registerkarte Konfiguration",
"paragraphs": [
"Hier kannst du /etc/wireguard/<interface>.conf direkt bearbeiten, falls die normalen Formulare eine Einstellung nicht anbieten."
],
"bullets": [
"Verwende diesen Editor nur mit Kenntnissen der WireGuard-Syntax und PostUp/PostDown-Befehle.",
"Vor Anwendung validiert und sichert WGTools die Datei.",
"Bei ungewöhnlichen Konfigurationen kann die automatische Bearbeitung eingeschränkt sein, um manuelle Regeln zu schützen. PrivateKey, PresharedKey und andere Geheimnisse niemals veröffentlichen."
],
"example_title": "Beispiel",
"example_lines": [
"[Interface]",
"Address = 10.0.0.1/24",
"ListenPort = 51820",
"",
"[Peer]",
"AllowedIPs = 10.0.0.2/32"
],
"warning": "PrivateKey, PresharedKey und andere Geheimnisse niemals veröffentlichen."
}
]
},
{
"id": "clients",
"title": "Clients",
"intro": "Ein Client kann ein Telefon, Laptop, Router oder anderer WireGuard-Peer sein. Hier verwaltest du Konfigurationen, Zugriff, Ablaufzeiten, Zeitpläne und Site-to-Site-Verbindungen.",
"topics": [
{
"title": "Normaler Client",
"paragraphs": [
"Für ein Telefon oder einen Computer wähle Client. WGTools vergibt eine freie VPN-Adresse und erstellt die Schlüssel."
],
"bullets": [
"Der Name ist nur eine Bezeichnung innerhalb von WGTools.",
"Der Endpoint in der erzeugten Konfiguration ist die Adresse, unter der das Gerät deinen WireGuard-Server findet.",
"DNS kann pro Client angegeben oder aus einer Gruppenvorlage übernommen werden."
],
"example_title": "Beispiel",
"example_lines": [
"Name: Telefon",
"VPN-Adresse: 10.0.0.3/32",
"Endpoint: vpn.example.com:51820"
],
"warning": ""
},
{
"title": "VPN-Verkehr und AllowedIPs",
"paragraphs": [
"AllowedIPs in der Clientkonfiguration legt fest, welche Ziele das Gerät durch den Tunnel sendet. Dies ist unabhängig von der Zugriffsregel auf dem Server."
],
"bullets": [
"Gesamter Verkehr leitet Internet- und entfernten Netzverkehr durch das VPN; alternativ lassen sich einzelne Netze auswählen.",
"Mit der Ausnahme für lokale Netze bleiben Drucker und Router vor Ort direkt erreichbar, obwohl der Internetverkehr durch das VPN läuft.",
"Serverregeln können Ziele auch dann sperren, wenn sie in AllowedIPs enthalten sind."
],
"example_title": "Beispiel",
"example_lines": [
"0.0.0.0/0 — gesamter IPv4-Verkehr über VPN",
"192.168.50.0/24 — nur ein entferntes Netz"
],
"warning": ""
},
{
"title": "Clientgruppen",
"paragraphs": [
"Eine Gruppe bündelt gemeinsame Zugriffsregeln und eine Konfigurationsvorlage für mehrere Clients."
],
"bullets": [
"Gruppen steuern Internet-/LAN-Zugriff und individuelle Erlaubnis-/Sperrausnahmen.",
"Außerdem können sie Standardrouten, DNS und Keepalive für neue Konfigurationen vorgeben.",
"Serverseitige Gruppenregeln wirken sofort. Eine bereits auf dem Telefon installierte Konfiguration wird aber nicht stillschweigend geändert; bei Bedarf Vorlage anwenden und eine neue Datei oder einen QR-Code ausgeben."
],
"example_title": "Beispiel",
"example_lines": [
"Gruppe „Gäste“",
"Internet: erlaubt",
"LAN: gesperrt",
"Mitglieder: Telefon-1, Tabellet-1"
],
"warning": ""
},
{
"title": "Regeln pro Client",
"paragraphs": [
"Ein Client kann die Gruppenregeln übernehmen oder eigene Ausnahmen festlegen."
],
"bullets": [
"Eine clientbezogene Erlaubnis oder Sperre hat Vorrang vor der entsprechenden Gruppenausnahme.",
"So kann beispielsweise ein Mitarbeiter einen Server erreichen, der für die restliche Gruppe gesperrt ist."
],
"example_title": "Beispiel",
"example_lines": [
"Gruppe sperrt 192.168.1.0/24",
"Client erlaubt zusätzlich 192.168.1.50/32"
],
"warning": ""
},
{
"title": "Site-to-Site-Client",
"paragraphs": [
"Wähle Site-to-Site, wenn ein Peer ein ganzes Netz repräsentiert. Trage die dahinterliegenden Netze als Entfernte Netze ein."
],
"bullets": [
"WGTools ergänzt die nötigen Serverrouten automatisch.",
"Diese Netze können später über Nodes veröffentlicht werden.",
"Ein gewöhnliches Telefon oder Laptop benötigt keinen Site-to-Site-Modus."
],
"example_title": "Beispiel",
"example_lines": [
"Router-Peer: 10.0.0.20/32",
"Entferntes Netz: 192.168.50.0/24"
],
"warning": ""
},
{
"title": "Direkte Verbindung und VPS Relay",
"paragraphs": [
"Ist VPS Relay für die Schnittstelle installiert, können unterstützte Clients direkt oder über Relay verbinden."
],
"bullets": [
"Direkt ist ideal, wenn der WireGuard-Port aus dem Internet erreichbar ist.",
"Relay hilft bei CGNAT und wenn eingehendes UDP nicht möglich ist.",
"VPN-Adresse und Zugriffsregeln des Clients bleiben gleich."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "PSK, Isolation und Schlüsselwechsel",
"paragraphs": [
"WireGuard nutzt ohnehin öffentliche und private Schlüssel. Ein optionaler PSK ergänzt ein weiteres gemeinsames Geheimnis."
],
"bullets": [
"Clientisolation verhindert Verbindungen zu anderen VPN-Adressen desselben WireGuard-Pools.",
"Schlüsselwechsel erzeugt ein neues Schlüsselpaar und bei aktivem PSK auch einen neuen PSK. Die alte Konfiguration funktioniert danach nicht mehr: Neue Datei oder QR ausgeben.",
"VPN-Adresse, Gruppe, Zeitplan und Verkehrsstatistik bleiben erhalten."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Zeitlich begrenzter Zugriff",
"paragraphs": [
"Ein Client kann nach 1, 3 oder 6 Stunden, einem Tag oder zu einem frei gewählten Zeitpunkt ablaufen."
],
"bullets": [
"Zum Ablaufzeitpunkt führt der Hintergrunddienst die gewählte Aktion aus.",
"Zum Reaktivieren eines gespeicherten abgelaufenen Clients eine neue Ablaufzeit oder Ohne Begrenzung einstellen."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Zugriffszeitplan",
"paragraphs": [
"Ein Zeitplan erlaubt oder sperrt einen Client automatisch an ausgewählten Tagen und Uhrzeiten, ohne seine Konfiguration auszutauschen."
],
"bullets": [
"Maßgeblich ist die lokale Uhrzeit des WireGuard-Servers.",
"Zeitfenster können über Mitternacht reichen, etwa 22:00–06:00.",
"Mit Beginn des nächsten erlaubten Zeitfensters stellt WGTools denselben Peer wieder her."
],
"example_title": "Beispiel",
"example_lines": [
"Mo–Fr: 08:00–19:00"
],
"warning": ""
},
{
"title": "Status, Endpoint und Verkehr",
"paragraphs": [
"Die Tabelle zeigt den letzten Handshake, Endpoint und die kumulierten RX/TX-Werte."
],
"bullets": [
"Ein neuer Handshake zeigt, dass der Client kürzlich mit dem Server kommuniziert hat.",
"Der Endpoint eines Smartphones kann beim Wechsel zwischen WLAN und LTE wechseln; das ist normal.",
"Die Schnellsuche filtert nach Name, Adresse, Gruppe und Status."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Konfigurationsdatei und QR-Code",
"paragraphs": [
"Eine .conf-Datei eignet sich für Computer und Router; QR-Codes für die WireGuard-App auf Smartphones."
],
"bullets": [
"Der PrivateKey des Clients steht sowohl in der Datei als auch im QR-Code. Beides wie ein Passwort schützen.",
"Erneutes Ausgeben einer verwalteten Clientkonfiguration verwendet die in WGTools gespeicherten Schlüssel.",
"Nach einem Schlüsselwechsel immer eine neue Konfiguration ausgeben."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Bearbeiten und Löschen",
"paragraphs": [
"Vor verwalteten Änderungen sichert WGTools die WireGuard-Konfiguration und übernimmt Änderungen kontrolliert."
],
"bullets": [
"Das Löschen eines verwalteten Clients entfernt Peer, gespeicherte Schlüssel und zugehörige Regeln.",
"Eine bereits auf dem Gerät gespeicherte Datei wird nicht aus der Ferne gelöscht, kann aber keine Verbindung mehr aufbauen."
],
"example_title": "",
"example_lines": [],
"warning": ""
}
]
},
{
"id": "settings",
"title": "Einstellungen",
"intro": "Hier findest du Darstellung, Sicherungen, Telegram, E-Mail, HTTPS, Benutzer, Audit und Anwendungsupdates.",
"topics": [
{
"title": "Darstellung und Sprache",
"paragraphs": [
"Wähle helles, dunkles oder systemabhängiges Design sowie die Sprache."
],
"bullets": [
"Die eingeklappte Seitenleiste zeigt nur Navigationssymbole.",
"Die Seitenleistenansicht wird im aktuellen Browser gespeichert und sofort aktualisiert.",
"Die gewählte Sprache speichert WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Statusaktualisierung",
"paragraphs": [
"Das Aktualisierungsintervall bestimmt, wie häufig Server- und Clientstatus neu geladen werden. Die Online-Schwelle legt fest, wie lange nach einem Handshake ein Peer als verbunden gilt."
],
"bullets": [],
"example_title": "Beispiel",
"example_lines": [
"Aktualisierung: 5 s",
"Online: 180 s"
],
"warning": ""
},
{
"title": "Automatische Konfigurationssicherungen",
"paragraphs": [
"WGTools legt vor riskanten Änderungen eine Historie der WireGuard-Konfigurationen an, um einzelne Änderungen schnell zurückzunehmen."
],
"bullets": [
"Du kannst die Anzahl aufbewahrter Versionen bestimmen.",
"Diese Historie ist nicht mit der vollständigen portablen WGTools-Sicherung identisch."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Vollständige Sicherung und Wiederherstellung",
"paragraphs": [
"Eine .wgtbackup-Datei dient dem Umzug auf einen anderen Server oder der Wiederherstellung nach Ausfällen."
],
"bullets": [
"Sie enthält WireGuard-Konfigurationen, Benutzer-/Einstellungsdatenbank, Gruppen, verwaltete Clients, Telegram-/SMTP-Einstellungen sowie Daten zum Wiederherstellen von VPS Relay und Nodes.",
"WGTools prüft das Archiv und erstellt vor dem Import eine Sicherheitssicherung. Schlägt das Einspielen fehl, versucht es einen Rollback.",
"Nach erfolgreicher Wiederherstellung endet die aktuelle Websitzung; melde dich mit einem Konto aus der wiederhergestellten Datenbank an."
],
"example_title": "",
"example_lines": [],
"warning": ".wgtbackup enthält private Schlüssel, PSKs, Passwort-Hashes, Telegram-Token und SMTP-Passwort. Wie ein Passwort aufbewahren."
},
{
"title": "Telegram-Bot",
"paragraphs": [
"Telegram erlaubt WireGuard-Abfragen und Verwaltungsaktionen, ohne die Weboberfläche zu öffnen."
],
"bullets": [
"Erstelle mit @BotFather einen Bot, füge den Token ein, aktiviere ihn und sende /start.",
"Ist deine Telegram-Benutzer-ID noch nicht freigegeben, zeigt der Bot die numerische ID an. Füge sie zur Freigabeliste hinzu.",
"Administrative Befehle funktionieren nur in privaten Chats: Status, Clients, Anlegen/Löschen, Datei-/QR-Ausgabe und WireGuard-Steuerung."
],
"example_title": "Beispiel",
"example_lines": [
"Standard-Endpoint: vpn.example.com",
"DNS: 1.1.1.1, 8.8.8.8"
],
"warning": ""
},
{
"title": "E-Mail / SMTP und Passwortwiederherstellung",
"paragraphs": [
"SMTP ermöglicht „Passwort vergessen?“ auf der Anmeldeseite."
],
"bullets": [
"Unterstützt werden STARTTLS, TLS/SSL und unverschlüsseltes SMTP in einem vertrauenswürdigen LAN. Der Benutzername darf leer bleiben, wenn der SMTP-Server keine Authentifizierung braucht.",
"Das Kennwort bleibt lokal und wird nie an den Browser zurückgegeben. Die Testschaltfläche versendet eine E-Mail an die angegebene Testadresse.",
"Wiederherstellungscodes sind einmalig, gehasht, 15 Minuten gültig und gegen zu viele Versuche geschützt."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Integriertes HTTPS",
"paragraphs": [
"WGTools kann HTTPS ohne Nginx, Caddy oder externen Reverse-Proxy selbst bereitstellen."
],
"bullets": [
"Gib Domain/öffentliche IP, E-Mail, HTTPS-Port und privaten Pfad ein und wähle Zertifikat anfordern/erneuern. Dabei werden die HTTPS-Einstellungen gespeichert.",
"HTTPS lässt sich erst mit einem passenden Zertifikat aktivieren. Nach erfolgreicher Ausstellung die Option einschalten und Speichern wählen; bei geänderter Domain/IP wird ein neues Zertifikat benötigt.",
"TCP 80 muss für Ausstellung und Erneuerung aus dem Internet erreichbar sein. Das Panel läuft auf dem ausgewählten HTTPS-Port (z. B. 443 oder 8443). Ein privater Pfad wie /MyWGTools/ bestimmt die URL; andere Pfade liefern bei aktiviertem HTTPS 404.",
"WGTools zeigt lokale Portbelegung und stoppt keine fremden Webserver; ein systemd-Timer erneuert Zertifikate automatisch.",
"Der private Pfad ersetzt keine Anmeldung. Panel nicht unnötig öffentlich freigeben und starke Zugangsdaten verwenden."
],
"example_title": "Beispiel",
"example_lines": [
"https://wg.example.com/MyWGTools/"
],
"warning": "Ein privater Pfad ersetzt keine Anmeldung. Stelle das Panel nicht unnötig öffentlich bereit und verwende sichere Zugangsdaten."
},
{
"title": "Benutzer",
"paragraphs": [
"Das erste Konto wird bei der WGTools-Einrichtung erstellt; weitere lassen sich unter Einstellungen hinzufügen."
],
"bullets": [
"Derzeit haben alle Benutzer dieselben Verwaltungsrechte. E-Mail und Passwort können geändert und Konten entfernt werden.",
"Jeder Benutzer kann MFA über Google Authenticator oder eine kompatible TOTP-App aktivieren. Dabei werden einmalig Wiederherstellungscodes angezeigt.",
"Geht der Authenticator verloren, kann root MFA für den Benutzer über die wgtools-CLI deaktivieren. Das eigene und das letzte verbliebene Konto können nicht gelöscht werden.",
"Passwortänderung/-wiederherstellung und Änderung des MFA-Status machen ältere Websitzungen ungültig."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Audit-Protokoll",
"paragraphs": [
"Audit protokolliert wichtige Web- und Telegram-Verwaltungsaktionen sowie die WireGuard-Verbindungshistorie."
],
"bullets": [
"Webaktionen enthalten den WGTools-Benutzernamen; Telegram-Aktionen wenn verfügbar @username und die numerische Telegram-ID.",
"Konfigurationsänderungen, Abrufe von Clientdateien/QR, Updates und relevante Fehler werden protokolliert.",
"Passwörter, private Schlüssel, PSKs, Tokens und komplette Konfigurationen werden nicht erfasst. Das Protokoll wird nach der Aufbewahrungsfrist automatisch bereinigt."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "WGTools-Updates",
"paragraphs": [
"WGTools prüft regelmäßig stabile GitHub-Releases und installiert Updates nur nach ausdrücklicher Bestätigung."
],
"bullets": [
"Bei neuer Version erscheint eine Benachrichtigung.",
"Vor dem Update entstehen eine vollständige .wgtbackup und ein gesondertes Archiv für den Rückweg zur alten Anwendungsversion.",
"Startet die neue Version nicht, versucht WGTools die vorherige wiederherzustellen. Die installierte Version steht in der Oberfläche und unter Über."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Der Befehl wgtools und Notfallzugriff",
"paragraphs": [
"Der root-Befehl wgtools hilft, wenn das Webpanel nicht erreichbar ist."
],
"bullets": [
"Er zeigt WGTools-, WireGuard-, Nodes-, Telegram-, Timer- und lokalen Relay-Agent-Status sowie die aktuelle Panel-URL.",
"Er kann Panel und WireGuard starten, stoppen und neu starten sowie Logs anzeigen. Bei falschem HTTPS-Port oder privatem Pfad kann er integriertes HTTPS abschalten und HTTP wiederherstellen.",
"Bei Verlust von Authenticator und Codes lässt sich die MFA eines Benutzers notfallmäßig deaktivieren.",
"Deinstallieren entfernt Panel und Dienste, erhält aber normales WireGuard und Daten für eine spätere Neuinstallation. FULL CLEANUP löscht nach Bestätigung mit DELETE ALL WGTools, lokales Relay und WireGuard; fremde VPS-Relay-Agents bleiben unberührt."
],
"example_title": "Beispiel",
"example_lines": [
"root@server:~# wgtools"
],
"warning": ""
},
{
"title": "Wo Daten gespeichert werden",
"paragraphs": [
"Manuelles Bearbeiten ist meist unnötig. Die Pfade helfen aber bei Fehlersuche und Backupplanung."
],
"bullets": [],
"example_title": "Wichtige Pfade",
"example_lines": [
"/etc/wireguard/wg0.conf — WireGuard-Konfiguration",
"/var/lib/wgtools/wgtools.db — Benutzer und Einstellungen",
"/var/lib/wgtools/clients/ — verwaltete Clientdaten",
"/var/lib/wgtools/backups/ — Konfigurationsverlauf",
"/var/lib/wgtools/update-backups/ — Archive für Update-Rollback"
],
"warning": ""
}
]
}
]
-663
View File
@@ -1,663 +0,0 @@
[
{
"id": "dashboard",
"title": "Panel principal",
"intro": "El panel principal responde a tres preguntas: ¿está funcionando WireGuard, quién está conectado y se encuentra bien el servidor?",
"topics": [
{
"title": "Primeros pasos",
"paragraphs": [
"La barra superior muestra la interfaz WireGuard seleccionada. Si hay varias, las páginas de WGTools trabajan con la interfaz activa."
],
"bullets": [
"Iniciar activa WireGuard, Detener lo desactiva y Reiniciar reinicia brevemente la interfaz.",
"Los teléfonos y equipos suelen reconectarse automáticamente después de un reinicio.",
"Cuando la interfaz está detenida, sus clientes no pueden conectarse."
],
"example_title": "Ejemplo",
"example_lines": [
"wg0 · Home · 10.0.0.1/24 · UDP 51820"
],
"warning": ""
},
{
"title": "CPU, memoria, red y tiempo activo",
"paragraphs": [
"Estos indicadores describen todo el servidor Debian, no solo WireGuard."
],
"bullets": [
"CPU muestra la carga actual del procesador y Memoria la RAM utilizada y total.",
"Red indica las velocidades actuales de recepción y envío de la interfaz externa.",
"El tiempo activo cuenta desde el último arranque del sistema; las gráficas de 24 horas ayudan a detectar carga anómala o tráfico sostenido."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Quién está conectado",
"paragraphs": [
"WireGuard no mantiene una sesión como una página web. WGTools considera que un cliente está en línea si su último handshake es suficientemente reciente."
],
"bullets": [
"Handshake es el último intercambio de control WireGuard correcto; Endpoint representa la IP pública y el puerto del cliente.",
"«Nunca» indica que el servidor aún no ha visto un handshake válido de ese peer.",
"La búsqueda rápida filtra por nombre, dirección VPN, tipo y Endpoint."
],
"example_title": "Ejemplo",
"example_lines": [
"Teléfono · 10.0.0.3/32",
"Endpoint: 203.0.113.25:63275",
"Handshake: hace 18 s"
],
"warning": ""
},
{
"title": "Tráfico",
"paragraphs": [
"WGTools guarda los totales RX/TX por separado de los contadores temporales de WireGuard, por lo que las estadísticas sobreviven a reinicios de la interfaz o del servidor."
],
"bullets": [
"La tarjeta Tráfico muestra el volumen acumulado de la interfaz elegida y cada cliente mantiene sus propios totales RX/TX.",
"Restablecer inicia un nuevo conteo desde el momento actual.",
"RX/TX en la tarjeta Red representa la velocidad instantánea, no los datos acumulados."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Varias interfaces WireGuard",
"paragraphs": [
"Un mismo servidor puede alojar varias VPN independientes, como la de casa y la del trabajo."
],
"bullets": [
"Cambiar el selector superior no modifica la configuración: solo elige qué interfaz muestran las páginas Panel, Servidor y Clientes.",
"Cada interfaz tiene sus direcciones, puerto, clientes, rutas y reglas de acceso."
],
"example_title": "Ejemplo",
"example_lines": [
"wg0 · Home · 10.0.0.1/24",
"wg1 · Trabajo · 10.0.1.1/24"
],
"warning": ""
}
]
},
{
"id": "server",
"title": "Servidor",
"intro": "Aquí se gestiona WireGuard: interfaces, rutas, acceso a redes, conexión entre servidores mediante Nodes y acceso público con VPS Relay.",
"topics": [
{
"title": "Redes VPN e interfaces WireGuard",
"paragraphs": [
"Una interfaz WireGuard es como una tarjeta de red virtual con su propia subred VPN. Cada cliente recibe una dirección de esa red."
],
"bullets": [
"Los nombres del sistema suelen ser wg0, wg1, etc. Un nombre visible como Home u Office solo facilita identificarlos.",
"ListenPort es el puerto UDP al que se conectan los clientes.",
"Normalmente se puede dejar MTU en Auto; solo conviene cambiarlo a mano por problemas con ciertas redes, LTE o PPPoE."
],
"example_title": "Ejemplo",
"example_lines": [
"Red VPN: 10.0.0.0/24",
"Dirección del servidor: 10.0.0.1/24",
"Clientes: 10.0.0.2, 10.0.0.3, ...",
"Puerto: UDP 51820"
],
"warning": ""
},
{
"title": "Configuración inicial y nuevas interfaces",
"paragraphs": [
"En un Debian limpio, WGTools puede instalar WireGuard y crear la primera interfaz mediante un asistente. Después puedes añadir wg1, wg2 y otras."
],
"bullets": [
"WGTools sugiere una subred VPN libre, un puerto UDP y una tabla de enrutamiento por políticas.",
"Comprueba las subredes superpuestas y los puertos ocupados antes de crearla.",
"Cada interfaz obtiene sus propias claves y configuración. Al eliminarla se crea antes una copia de seguridad y se retiran los datos gestionados relacionados."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "NAT explicado de forma sencilla",
"paragraphs": [
"NAT/MASQUERADE permite que un cliente VPN acceda a la LAN o a Internet usando la dirección del servidor WireGuard como origen. Suele ser la opción más simple en casa."
],
"bullets": [
"Con NAT activado, el router doméstico normalmente no necesita una ruta de retorno específica hacia la subred VPN.",
"Sin NAT, el enrutamiento real requiere rutas de retorno en los routers vecinos."
],
"example_title": "Ejemplo",
"example_lines": [
"Teléfono 10.0.0.3 → WGTools 192.168.1.10 → Internet",
"El router de casa ve el origen 192.168.1.10"
],
"warning": ""
},
{
"title": "Rutas y enrutamiento por políticas",
"paragraphs": [
"Una ruta indica a Linux qué interfaz o puerta de enlace utilizar para llegar a una red. El enrutamiento por políticas permite elegir otra tabla para tráfico concreto, como los clientes VPN."
],
"bullets": [
"Una instalación doméstica sencilla generalmente no necesita una tabla independiente.",
"Es útil si los clientes deben usar una puerta de enlace determinada, otra VPN o una WAN separada.",
"WGTools distingue rutas del sistema, Site-to-Site y manuales. Las rutas personalizadas pueden crearse, editarse y eliminarse."
],
"example_title": "Ejemplo",
"example_lines": [
"Origen: 10.0.0.0/24",
"Tabla: 200",
"Default via: 192.168.1.1 dev eth0"
],
"warning": ""
},
{
"title": "Cortafuegos y acceso a la red",
"paragraphs": [
"El cortafuegos determina si el tráfico está permitido; el enrutamiento solo establece adónde enviarlo. Son funciones distintas."
],
"bullets": [
"Puedes permitir o bloquear el acceso de un cliente VPN a determinadas redes.",
"WGTools genera automáticamente reglas de grupos y excepciones individuales.",
"Antes de aplicar cambios crea una copia de seguridad y restaura la anterior si WireGuard no arranca."
],
"example_title": "Ejemplo",
"example_lines": [
"10.0.0.6/32 → bloquear → 192.168.1.0/24",
"Los demás clientes aún pueden acceder a la LAN"
],
"warning": ""
},
{
"title": "Site-to-Site: unir dos redes",
"paragraphs": [
"Site-to-Site sirve para un peer que representa una red remota completa en lugar de un teléfono o portátil."
],
"bullets": [
"Indica las redes detrás del peer en Redes remotas y WGTools creará las rutas automáticamente.",
"Si el peer pasa a offline, esas rutas configuradas no desaparecen.",
"El lado remoto también debe tener una ruta de retorno por WireGuard."
],
"example_title": "Ejemplo",
"example_lines": [
"Home: 192.168.1.0/24",
"Peer de oficina: 10.0.0.20/32",
"LAN de oficina: 192.168.50.0/24",
"Resultado: los equipos de casa pueden acceder a 192.168.50.x"
],
"warning": ""
},
{
"title": "Nodes: conectar servidores WGTools",
"paragraphs": [
"Nodes conecta varias instalaciones WGTools mediante un túnel WireGuard interno dedicado. Una actúa como HUB y las demás se unen con un código de un solo uso."
],
"bullets": [
"El HUB utiliza el mismo número de puerto en UDP para WireGuard y TCP para el emparejamiento inicial seguro. Después la sincronización viaja por wgnode0 sin depender de la URL del panel, el puerto HTTPS o la ruta privada.",
"WGTools detecta redes VPN, Site-to-Site y LAN: publica solo las necesarias. Las redes detectadas posteriormente deben añadirse expresamente; cualquier cambio genera un aviso para revisar la lista.",
"Las redes publicadas por diferentes Nodes no deben superponerse (por ejemplo 10.0.0.0/24 en dos ubicaciones); WGTools bloquea los conflictos.",
"Detalles muestra las redes y los clientes remotos en modo de solo lectura. Publicar una red la hace accesible a los nodos conectados: comparte solo lo imprescindible."
],
"example_title": "Ejemplo: home + VPS",
"example_lines": [
"HUB: vpn.example.com:51950",
"Casa publica: 192.168.1.0/24",
"VPS publica: 10.20.0.0/24",
"Tras vincularlos ambos lados enrutan por wgnode0"
],
"warning": ""
},
{
"title": "VPS Relay: sin IP pública en casa",
"paragraphs": [
"VPS Relay ayuda cuando los clientes no pueden llegar directamente al servidor, por ejemplo detrás de CGNAT. Un VPS público actúa como entrada, mientras el servidor WireGuard y sus reglas permanecen en el host WGTools."
],
"bullets": [
"Añade el VPS por SSH: WGTools comprueba el host y los puertos e instala Relay Agent.",
"Un mismo agente puede servir a varios controladores WGTools independientes con claves y conexiones aisladas.",
"Los clientes compatibles pueden elegir conexión directa o Relay. Quitar un VPS de WGTools desconecta el transporte local, pero deja el agente y el tenant guardados para reconectarlos después.",
"Relay proporciona una entrada pública a los clientes; Nodes enlaza servidores WGTools y sus redes. Son funciones diferentes."
],
"example_title": "Ejemplo",
"example_lines": [
"Teléfono → VPS público → transporte Relay protegido → WGTools doméstico → red necesaria"
],
"warning": ""
},
{
"title": "Diagnóstico",
"paragraphs": [
"El diagnóstico comprueba WireGuard, reenvío de IP, puertos, rutas y servicios. Es útil cuando un cliente no conecta o no alcanza una red remota."
],
"bullets": [
"Comprueba primero que la interfaz está funcionando y que existe un handshake reciente. Si el handshake funciona, revisa rutas, cortafuegos y camino de retorno.",
"Servidor → Ruta muestra los saltos de traceroute, RTT medio y aumentos de latencia. Los saltos sin respuesta aparecen de forma neutral y no implican por sí solos una avería.",
"El mapa permite desplazarse y hacer zoom; al pulsar un salto aparecen IP, ubicación aproximada, ASN/proveedor y RTT.",
"Con el mapa activado, las IP públicas se geolocalizan mediante ipwho.is y los mapas se cargan desde OpenStreetMap; las IP privadas no se envían. Traceroute no mide el ancho de banda real en Mbit/s.",
"El diagnóstico por sí mismo no modifica la configuración."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Aplicar cambios de forma segura",
"paragraphs": [
"Los cambios del servidor, las rutas y el cortafuegos pueden reiniciar brevemente WireGuard."
],
"bullets": [
"WGTools crea primero una copia de la configuración.",
"Si la nueva configuración no arranca, intenta restaurar la anterior automáticamente.",
"Los clientes pueden desconectarse un momento y normalmente se reconectan solos."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Pestaña Configuración",
"paragraphs": [
"Es un editor directo de /etc/wireguard/<interface>.conf para opciones que no aparecen en los formularios normales."
],
"bullets": [
"Úsalo únicamente si conoces la sintaxis de WireGuard y los comandos PostUp/PostDown.",
"WGTools valida el archivo y crea una copia antes de aplicarlo.",
"Una configuración no estándar puede limitar la edición automática para proteger reglas manuales. Nunca compartas PrivateKey, PresharedKey ni otros secretos."
],
"example_title": "Ejemplo",
"example_lines": [
"[Interface]",
"Address = 10.0.0.1/24",
"ListenPuerto = 51820",
"",
"[Peer]",
"AllowedIPs = 10.0.0.2/32"
],
"warning": "Nunca compartas PrivateKey, PresharedKey ni otros secretos."
}
]
},
{
"id": "clients",
"title": "Clientes",
"intro": "Un cliente puede ser un teléfono, portátil, router o cualquier peer WireGuard. Aquí gestionas configuraciones, permisos, caducidades, horarios y conexiones Site-to-Site.",
"topics": [
{
"title": "Cliente normal",
"paragraphs": [
"Elige Cliente para teléfonos y equipos. WGTools asigna una dirección VPN libre y genera las claves."
],
"bullets": [
"El nombre es solo una etiqueta en WGTools.",
"Endpoint en el archivo generado es la dirección que el dispositivo utiliza para encontrar el servidor WireGuard.",
"DNS puede establecerse por cliente o heredarse de una plantilla de grupo."
],
"example_title": "Ejemplo",
"example_lines": [
"Nombre: Teléfono",
"Dirección VPN: 10.0.0.3/32",
"Endpoint: vpn.example.com:51820"
],
"warning": ""
},
{
"title": "Tráfico VPN y AllowedIPs",
"paragraphs": [
"AllowedIPs en la configuración del cliente define qué destinos envía el dispositivo por el túnel. No equivale a la política de acceso del servidor."
],
"bullets": [
"Todo el tráfico envía tanto Internet como redes remotas por VPN; también puedes elegir únicamente ciertas redes.",
"Excluir la red local conserva acceso directo a la impresora o al router mientras Internet va por la VPN.",
"El servidor puede bloquear un destino aunque aparezca en AllowedIPs."
],
"example_title": "Ejemplo",
"example_lines": [
"0.0.0.0/0 — todo el tráfico IPv4 por VPN",
"192.168.50.0/24 — solo una red remota"
],
"warning": ""
},
{
"title": "Grupos de clientes",
"paragraphs": [
"Un grupo permite definir una plantilla y reglas de acceso una sola vez para varios clientes."
],
"bullets": [
"Los grupos controlan acceso a Internet, LAN y excepciones de permitir/bloquear.",
"También pueden ofrecer rutas, DNS y Keepalive predeterminados para configuraciones nuevas.",
"Los cambios de reglas del servidor se aplican enseguida, pero el archivo instalado en el teléfono no cambia automáticamente. Aplica la plantilla y entrega un nuevo archivo o QR si debe modificarse el dispositivo."
],
"example_title": "Ejemplo",
"example_lines": [
"Grupo «Invitados»",
"Internet: permitido",
"LAN: bloqueada",
"Miembros: Teléfono-1, Tablat-1"
],
"warning": ""
},
{
"title": "Reglas por cliente",
"paragraphs": [
"Un cliente puede heredar las reglas del grupo o añadir excepciones propias."
],
"bullets": [
"Una excepción individual de permitir o bloquear tiene prioridad sobre la excepción correspondiente del grupo.",
"Por ejemplo, un empleado puede acceder a un servidor prohibido para el resto de su grupo."
],
"example_title": "Ejemplo",
"example_lines": [
"El grupo bloquea 192.168.1.0/24",
"El cliente permite además 192.168.1.50/32"
],
"warning": ""
},
{
"title": "Cliente Site-to-Site",
"paragraphs": [
"Utiliza Site-to-Site cuando un peer representa una red completa. Introduce las redes detrás de él como Redes remotas."
],
"bullets": [
"WGTools añade esas rutas al servidor automáticamente.",
"Más adelante puedes publicarlas mediante Nodes.",
"Un teléfono o portátil común no necesita Site-to-Site."
],
"example_title": "Ejemplo",
"example_lines": [
"Peer router: 10.0.0.20/32",
"Red remota: 192.168.50.0/24"
],
"warning": ""
},
{
"title": "Conexión directa y VPS Relay",
"paragraphs": [
"Con VPS Relay instalado en la interfaz, los clientes compatibles pueden conectarse directamente o mediante Relay."
],
"bullets": [
"La conexión directa es preferible cuando el puerto WireGuard es accesible desde Internet.",
"Relay ayuda detrás de CGNAT o si el UDP entrante no está disponible.",
"La dirección VPN y la política de acceso del cliente permanecen iguales."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "PSK, aislamiento y rotación de claves",
"paragraphs": [
"WireGuard ya utiliza claves pública/privada. Un PSK opcional añade otro secreto compartido."
],
"bullets": [
"El aislamiento impide que un cliente alcance otras direcciones de la misma red VPN.",
"Rotar las claves crea un par nuevo y, si está habilitado, otro PSK. El archivo anterior deja de funcionar; entrega uno nuevo o un QR.",
"Dirección VPN, grupo, horarios e historial de tráfico se conservan."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Acceso temporal",
"paragraphs": [
"Un cliente puede caducar después de 1, 3 o 6 horas, un día o en una fecha y hora personalizada."
],
"bullets": [
"Al cumplirse el plazo, un servicio en segundo plano ejecuta la acción de caducidad elegida.",
"Para reactivar un cliente caducado que sigue guardado, elige una nueva caducidad o Sin límite."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Horario de acceso",
"paragraphs": [
"Un horario habilita y bloquea automáticamente al cliente en días y horas seleccionados sin sustituir su configuración."
],
"bullets": [
"Utiliza la hora local del servidor WireGuard.",
"Los intervalos pueden cruzar la medianoche, por ejemplo 22:00–06:00.",
"Al comenzar un nuevo período permitido, WGTools recupera el mismo peer."
],
"example_title": "Ejemplo",
"example_lines": [
"Lun–Vie: 08:00–19:00"
],
"warning": ""
},
{
"title": "Estado, Endpoint y tráfico",
"paragraphs": [
"La tabla muestra el último handshake, Endpoint y totales RX/TX."
],
"bullets": [
"Un handshake reciente significa que el cliente se ha comunicado con el servidor hace poco.",
"El Endpoint de un móvil puede cambiar al pasar entre Wi-Fi y LTE; es normal.",
"La búsqueda rápida filtra por nombre, dirección, grupo y estado."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Configuración y código QR",
"paragraphs": [
"Un archivo .conf resulta práctico para ordenadores y routers; el QR para la aplicación móvil WireGuard."
],
"bullets": [
"PrivateKey del cliente se incluye tanto en el archivo como en el QR: protégelos como una contraseña.",
"Al volver a emitir la configuración de un cliente gestionado se utilizan las claves almacenadas en WGTools.",
"Después de rotar claves entrega siempre una nueva configuración."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Editar y eliminar",
"paragraphs": [
"WGTools guarda una copia de la configuración WireGuard antes de los cambios gestionados y los aplica de manera segura."
],
"bullets": [
"Eliminar un cliente gestionado quita su peer, claves guardadas y reglas relacionadas.",
"Un archivo que ya esté en el dispositivo no se borra a distancia, pero ya no podrá conectarse."
],
"example_title": "",
"example_lines": [],
"warning": ""
}
]
},
{
"id": "settings",
"title": "Ajustes",
"intro": "Aquí encontrarás apariencia, copias de seguridad, Telegram, correo, HTTPS, usuarios, auditoría y actualizaciones.",
"topics": [
{
"title": "Apariencia e idioma",
"paragraphs": [
"Selecciona tema claro, oscuro o del sistema y el idioma de la interfaz."
],
"bullets": [
"Contraer la barra lateral deja visibles solo los iconos.",
"Su estado se guarda en el navegador y cambia de inmediato.",
"WGTools guarda el idioma elegido."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Actualización del estado",
"paragraphs": [
"El intervalo de actualización define cada cuánto se renuevan los estados del servidor y los clientes. El umbral online establece durante cuánto tiempo después del handshake se considera conectado un peer."
],
"bullets": [],
"example_title": "Ejemplo",
"example_lines": [
"Actualización: 5 s",
"En línea: 180 s"
],
"warning": ""
},
{
"title": "Copias automáticas de configuración",
"paragraphs": [
"WGTools guarda un historial de configuraciones WireGuard antes de cambios delicados para poder revertirlos rápidamente."
],
"bullets": [
"Puedes elegir cuántas copias mantener.",
"Este historial es distinto de la copia completa y portátil de WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Copia completa y restauración",
"paragraphs": [
"Un archivo .wgtbackup permite migrar a otro servidor o recuperar datos tras una avería."
],
"bullets": [
"Contiene configuraciones WireGuard, base de usuarios y ajustes, grupos, datos de clientes, configuración Telegram/SMTP y estado necesario para restaurar VPS Relay/Nodes.",
"Antes de restaurar, WGTools valida el archivo y guarda una copia de seguridad del estado actual. Si falla, intenta revertir los cambios.",
"Tras restaurar correctamente se cierra la sesión web actual; entra con una cuenta de la base restaurada."
],
"example_title": "",
"example_lines": [],
"warning": ".wgtbackup contiene claves privadas, PSK, hashes de contraseñas, token de Telegram y contraseña SMTP. Guárdalo como si fuera una contraseña."
},
{
"title": "Bot de Telegram",
"paragraphs": [
"Telegram permite consultar y administrar WireGuard sin abrir la interfaz web."
],
"bullets": [
"Crea un bot con @BotFather, pega su token, actívalo y envía /start.",
"Si tu ID de Telegram aún no está autorizado, el bot muestra el número: añádelo a la lista permitida.",
"Los comandos de administración solo funcionan en chats privados: estado, clientes, creación/eliminación, nueva emisión de configuraciones/QR y controles WireGuard."
],
"example_title": "Ejemplo",
"example_lines": [
"Endpoint predeterminado: vpn.example.com",
"DNS: 1.1.1.1, 8.8.8.8"
],
"warning": ""
},
{
"title": "Correo SMTP y recuperación de contraseña",
"paragraphs": [
"SMTP hace posible «¿Olvidaste tu contraseña?» en la pantalla de acceso."
],
"bullets": [
"Admite STARTTLS, TLS/SSL y SMTP sin cifrar en una LAN de confianza. El usuario puede quedar vacío si el servidor SMTP no exige autenticación.",
"La contraseña se almacena localmente y nunca se devuelve al navegador. El botón de prueba envía un mensaje al destinatario indicado.",
"Los códigos de recuperación son de un solo uso, se almacenan como hashes, duran 15 minutos y tienen límite de intentos."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "HTTPS integrado",
"paragraphs": [
"WGTools puede servir HTTPS directamente, sin Nginx, Caddy ni otro proxy inverso."
],
"bullets": [
"Introduce dominio/IP pública, correo, puerto HTTPS y ruta privada; después pulsa Obtener / renovar certificado. La acción también guarda estos ajustes HTTPS.",
"HTTPS solo puede activarse si ya existe un certificado adecuado. Tras emitirlo, activa la opción y pulsa Guardar; un dominio/IP diferente necesita su propio certificado.",
"El puerto TCP 80 debe ser accesible desde Internet para emitir y renovar. El panel usa el puerto HTTPS elegido, como 443 u 8443. La ruta privada define la URL, por ejemplo /MyWGTools/; otras rutas devuelven 404 con HTTPS integrado.",
"WGTools informa de puertos locales ocupados y nunca detiene servidores web ajenos; un temporizador systemd renueva el certificado automáticamente.",
"La ruta privada no sustituye a la autenticación. Evita exponer el panel innecesariamente y utiliza credenciales robustas."
],
"example_title": "Ejemplo",
"example_lines": [
"https://wg.example.com/MyWGTools/"
],
"warning": "Una ruta privada no sustituye la autenticación. Evita exponer el panel sin necesidad y usa credenciales seguras."
},
{
"title": "Usuarios",
"paragraphs": [
"La primera cuenta se crea durante la instalación de WGTools. Puedes añadir otras desde Ajustes."
],
"bullets": [
"Por ahora todos los usuarios tienen los mismos permisos. Se pueden cambiar correo y contraseña y eliminar cuentas.",
"Cada usuario puede activar MFA con Google Authenticator u otra aplicación TOTP y recibir una vez códigos de recuperación.",
"Si pierde el autenticador, root puede desactivar MFA con el comando wgtools. No se puede eliminar al usuario actual ni al último usuario existente.",
"Cambiar o recuperar la contraseña y activar/desactivar MFA invalidan las sesiones web anteriores de esa cuenta."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Registro de auditoría",
"paragraphs": [
"Auditoría muestra acciones importantes de administración web/Telegram e historial útil de conexiones WireGuard."
],
"bullets": [
"Las acciones web registran el usuario WGTools; las de Telegram incluyen @username, si existe, y su ID numérico.",
"Se anotan cambios de configuración, acceso a archivos/QR, actualizaciones y fallos relevantes.",
"No se registran contraseñas, claves privadas, PSK, tokens ni configuraciones completas. El historial tiene retención limitada y se limpia automáticamente."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Actualizaciones WGTools",
"paragraphs": [
"WGTools comprueba periódicamente las versiones estables de GitHub, pero no instala nada sin confirmación explícita."
],
"bullets": [
"Cuando existe una versión nueva aparece un aviso.",
"Antes de actualizar crea un .wgtbackup completo y otro archivo para restaurar la versión previa de la aplicación.",
"Si la versión nueva no inicia, WGTools intenta recuperar la anterior. La versión actual figura en el panel y en Acerca de."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Comando wgtools y acceso de emergencia",
"paragraphs": [
"El comando root wgtools es útil si el panel web deja de estar disponible."
],
"bullets": [
"Muestra el estado de WGTools, WireGuard, Nodes, Telegram, temporizadores y Relay Agent local, además de la URL del panel.",
"Puede iniciar, detener y reiniciar panel o WireGuard y mostrar registros. Si el puerto HTTPS o la ruta privada se configuran mal, permite desactivar HTTPS integrado y recuperar HTTP.",
"También permite a root desactivar MFA cuando se pierden el autenticador y los códigos.",
"Desinstalar WGTools elimina panel y servicios, pero conserva WireGuard normal y datos reutilizables. FULL CLEANUP, tras confirmar DELETE ALL, elimina WGTools, Relay local y WireGuard de este host; no toca los agentes Relay de otros VPS."
],
"example_title": "Ejemplo",
"example_lines": [
"root@server:~# wgtools"
],
"warning": ""
},
{
"title": "Dónde se guardan los datos",
"paragraphs": [
"Normalmente no hace falta editar estos archivos manualmente, pero sus rutas ayudan a solucionar problemas y planificar copias de seguridad."
],
"bullets": [],
"example_title": "Rutas principales",
"example_lines": [
"/etc/wireguard/wg0.conf — configuración WireGuard",
"/var/lib/wgtools/wgtools.db — usuarios y ajustes",
"/var/lib/wgtools/clients/ — datos de clientes gestionados",
"/var/lib/wgtools/backups/ — historial de configuración",
"/var/lib/wgtools/update-backups/ — archivos de reversión de actualización"
],
"warning": ""
}
]
}
]
-663
View File
@@ -1,663 +0,0 @@
[
{
"id": "dashboard",
"title": "Tableau de bord",
"intro": "Le tableau de bord permet de vérifier rapidement si WireGuard fonctionne, quels clients sont connectés et si le serveur est en bonne santé.",
"topics": [
{
"title": "Par où commencer",
"paragraphs": [
"La barre supérieure indique l'interface WireGuard sélectionnée. Si plusieurs interfaces existent, les pages WGTools utilisent celle qui est sélectionnée."
],
"bullets": [
"Démarrer active WireGuard, Arrêter le désactive et Redémarrer relance brièvement l'interface.",
"Les téléphones et ordinateurs se reconnectent normalement tout seuls après un redémarrage.",
"Quand l'interface est arrêtée, ses clients ne peuvent plus se connecter."
],
"example_title": "Exemple",
"example_lines": [
"wg0 · Home · 10.0.0.1/24 · UDP 51820"
],
"warning": ""
},
{
"title": "Processeur, mémoire, réseau et disponibilité",
"paragraphs": [
"Ces indicateurs concernent l'ensemble du serveur Debian, et pas seulement WireGuard."
],
"bullets": [
"CPU montre la charge actuelle du processeur et Mémoire la RAM utilisée et totale.",
"Réseau affiche les débits actuels de réception et d'émission de l'interface externe.",
"La durée de fonctionnement est mesurée depuis le dernier démarrage. Les graphiques sur 24 heures révèlent les charges anormales et les flux persistants."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Qui est connecté ?",
"paragraphs": [
"WireGuard ne conserve pas de session comme un site web. WGTools considère un client en ligne si son dernier handshake est suffisamment récent."
],
"bullets": [
"Handshake désigne le dernier échange de contrôle WireGuard réussi ; Endpoint est l'adresse IP publique et le port utilisés par le client.",
"« Jamais » signifie que le serveur n'a encore reçu aucun handshake réussi de ce pair.",
"La recherche rapide filtre par nom, adresse VPN, type et Endpoint."
],
"example_title": "Exemple",
"example_lines": [
"Téléphone · 10.0.0.3/32",
"Endpoint: 203.0.113.25:63275",
"Handshake: il y a 18 s"
],
"warning": ""
},
{
"title": "Trafic",
"paragraphs": [
"WGTools conserve les totaux RX/TX séparément des compteurs temporaires de WireGuard. Les statistiques survivent donc au redémarrage de l'interface ou du serveur."
],
"bullets": [
"La carte Trafic affiche le volume cumulé de l'interface choisie ; chaque client possède ses propres totaux RX/TX.",
"Réinitialiser recommence le comptage à partir de maintenant.",
"RX/TX dans la carte Réseau correspond au débit instantané, pas au volume total."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Plusieurs interfaces WireGuard",
"paragraphs": [
"Un même serveur peut héberger plusieurs VPN indépendants, par exemple personnel et professionnel."
],
"bullets": [
"Changer l'interface en haut ne modifie aucune configuration : cela sélectionne seulement les données affichées sur Tableau de bord, Serveur et Clients.",
"Chaque interface a ses adresses, son port, ses clients, ses routes et ses règles d'accès."
],
"example_title": "Exemple",
"example_lines": [
"wg0 · Home · 10.0.0.1/24",
"wg1 · Travail · 10.0.1.1/24"
],
"warning": ""
}
]
},
{
"id": "server",
"title": "Serveur",
"intro": "Cette section gère WireGuard : interfaces, routage, accès réseau, liaison entre serveurs via Nodes et accès public via VPS Relay.",
"topics": [
{
"title": "Réseaux VPN et interfaces WireGuard",
"paragraphs": [
"Une interface WireGuard ressemble à une carte réseau virtuelle possédant son propre sous-réseau VPN. Chaque client reçoit une adresse de ce sous-réseau."
],
"bullets": [
"Les noms système sont généralement wg0, wg1, etc. Un nom affiché comme Home ou Office facilite simplement la lecture.",
"ListenPort est le port UDP auquel les clients se connectent.",
"Le MTU peut généralement rester sur Auto ; ne le modifier qu'en cas de problème spécifique avec un réseau, LTE ou PPPoE."
],
"example_title": "Exemple",
"example_lines": [
"Réseau VPN: 10.0.0.0/24",
"Adresse du serveur: 10.0.0.1/24",
"Clients: 10.0.0.2, 10.0.0.3, ...",
"Port: UDP 51820"
],
"warning": ""
},
{
"title": "Installation initiale et interfaces supplémentaires",
"paragraphs": [
"Sur un Debian neuf, WGTools peut installer WireGuard et créer la première interface avec un assistant. Vous pouvez ensuite ajouter wg1, wg2, etc."
],
"bullets": [
"WGTools suggère un sous-réseau VPN libre, un port UDP et une table de routage par règles.",
"Les chevauchements de réseaux et les ports occupés sont vérifiés avant création.",
"Chaque interface reçoit ses propres clés et sa configuration. Sa suppression crée d'abord une sauvegarde, puis retire les données gérées associées."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Comprendre le NAT",
"paragraphs": [
"NAT/MASQUERADE permet à un client VPN d'atteindre le LAN ou Internet en utilisant l'adresse du serveur WireGuard comme source visible. C'est souvent la solution la plus simple à domicile."
],
"bullets": [
"Avec NAT activé, le routeur domestique n'a généralement pas besoin d'une route retour vers le sous-réseau VPN.",
"Sans NAT, les routeurs voisins doivent disposer des routes de retour appropriées."
],
"example_title": "Exemple",
"example_lines": [
"Téléphone 10.0.0.3 → WGTools 192.168.1.10 → Internet",
"Le routeur domestique voit la source 192.168.1.10"
],
"warning": ""
},
{
"title": "Routes et routage par règles",
"paragraphs": [
"Une route indique à Linux l'interface ou la passerelle vers un réseau. Le routage par règles permet de choisir une autre table, par exemple pour les clients VPN."
],
"bullets": [
"Une installation domestique simple n'a souvent pas besoin d'une table distincte.",
"Celle-ci est utile pour imposer une passerelle, un autre VPN ou une liaison WAN dédiée.",
"WGTools distingue les routes système, Site-to-Site et manuelles. Les routes personnalisées se créent, modifient et suppriment depuis l'interface."
],
"example_title": "Exemple",
"example_lines": [
"Source: 10.0.0.0/24",
"Table: 200",
"Default via: 192.168.1.1 dev eth0"
],
"warning": ""
},
{
"title": "Pare-feu et accès réseau",
"paragraphs": [
"Le pare-feu décide si le trafic est autorisé ; le routage décide seulement de sa destination. Ce sont deux fonctions distinctes."
],
"bullets": [
"Vous pouvez autoriser ou bloquer l'accès d'un client VPN à un réseau donné.",
"WGTools génère automatiquement les règles de groupe et les exceptions par client.",
"Avant d'appliquer des changements, il sauvegarde la configuration et revient en arrière si WireGuard ne démarre plus."
],
"example_title": "Exemple",
"example_lines": [
"10.0.0.6/32 → bloquer → 192.168.1.0/24",
"Les autres clients peuvent toujours accéder au LAN"
],
"warning": ""
},
{
"title": "Site-to-Site : relier deux réseaux",
"paragraphs": [
"Site-to-Site sert lorsqu'un pair représente un réseau distant entier, et non un simple téléphone ou ordinateur."
],
"bullets": [
"Indiquez les réseaux derrière ce pair dans Réseaux distants : WGTools crée automatiquement les routes.",
"La déconnexion du pair ne supprime pas ces routes configurées.",
"Le réseau distant doit également posséder une route de retour par WireGuard."
],
"example_title": "Exemple",
"example_lines": [
"Home: 192.168.1.0/24",
"Pair du bureau: 10.0.0.20/32",
"LAN du bureau: 192.168.50.0/24",
"Résultat : les appareils du domicile atteignent 192.168.50.x"
],
"warning": ""
},
{
"title": "Nodes : relier plusieurs serveurs WGTools",
"paragraphs": [
"Nodes connecte plusieurs installations WGTools grâce à un tunnel WireGuard interne dédié. L'une devient HUB et les autres la rejoignent avec un code à usage unique."
],
"bullets": [
"Le HUB utilise le même numéro de port en UDP pour WireGuard et TCP pour l'association initiale protégée. Ensuite, la synchronisation passe par wgnode0, indépendamment de l'URL du panneau, du port HTTPS et du chemin privé.",
"WGTools détecte les réseaux VPN, Site-to-Site et LAN. Ne publiez que les réseaux nécessaires ; un nouveau réseau détecté n'est jamais publié sans action explicite. Une modification ultérieure entraîne un avertissement de vérification.",
"Les réseaux publiés par plusieurs Nodes ne doivent pas se chevaucher (par exemple 10.0.0.0/24 sur deux sites). WGTools bloque les conflits.",
"Les détails des réseaux et clients distants sont en lecture seule. Publier un réseau le rend accessible aux nœuds associés : limitez cette exposition."
],
"example_title": "Exemple: home + VPS",
"example_lines": [
"HUB: vpn.example.com:51950",
"Domicile publie: 192.168.1.0/24",
"VPS publie: 10.20.0.0/24",
"Après association, les deux côtés passent par wgnode0"
],
"warning": ""
},
{
"title": "VPS Relay : sans IP publique à domicile",
"paragraphs": [
"VPS Relay aide lorsque le serveur n'est pas accessible directement depuis Internet, notamment derrière CGNAT. Un VPS public sert de point d'entrée ; le serveur WireGuard et ses règles restent sur l'hôte WGTools."
],
"bullets": [
"Ajoutez le VPS par SSH : WGTools vérifie l'hôte et les ports, puis installe Relay Agent.",
"Un même agent peut servir plusieurs contrôleurs WGTools indépendants avec clés et connexions isolées.",
"Les clients compatibles choisissent la connexion directe ou Relay. Supprimer un VPS dans WGTools détache le transport local mais conserve l'agent et le locataire enregistré pour une reconnexion.",
"Relay offre un point d'accès public aux clients, tandis que Nodes relie des serveurs WGTools et leurs réseaux."
],
"example_title": "Exemple",
"example_lines": [
"Téléphone → VPS public → transport Relay protégé → WGTools à domicile → réseau souhaité"
],
"warning": ""
},
{
"title": "Diagnostics",
"paragraphs": [
"Les diagnostics contrôlent WireGuard, le transfert IP, les ports, les routes et les services. Ils aident lorsqu'un client ne se connecte pas ou qu'un réseau est inaccessible."
],
"bullets": [
"Vérifiez d'abord que l'interface fonctionne et qu'un handshake récent existe. Si celui-ci réussit, cherchez du côté des routes, du pare-feu ou du chemin retour.",
"Serveur → Itinéraire montre les sauts traceroute, le RTT moyen et les hausses de latence. Les sauts sans réponse sont affichés de façon neutre : ils ne prouvent pas une panne.",
"La carte permet de déplacer et zoomer la vue ; cliquer un saut affiche son IP, sa position approximative, son ASN/fournisseur et son RTT.",
"Lorsque la carte est activée, les IP publiques sont géolocalisées via ipwho.is et les tuiles viennent d'OpenStreetMap ; les adresses privées ne sont pas envoyées. Traceroute ne mesure pas le débit en Mbit/s.",
"Les diagnostics ne modifient pas la configuration."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Appliquer les changements en sécurité",
"paragraphs": [
"Les changements au serveur, aux routes ou au pare-feu peuvent provoquer un bref redémarrage de WireGuard."
],
"bullets": [
"WGTools sauvegarde d'abord la configuration.",
"Si la nouvelle configuration échoue, WGTools tente de rétablir automatiquement l'ancienne.",
"Les clients peuvent se déconnecter quelques instants avant de se reconnecter seuls."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Onglet Configuration",
"paragraphs": [
"Cet éditeur donne accès directement à /etc/wireguard/<interface>.conf pour les options absentes des formulaires habituels."
],
"bullets": [
"Utilisez-le uniquement si vous maîtrisez la syntaxe WireGuard et les commandes PostUp/PostDown.",
"WGTools valide et sauvegarde le fichier avant application.",
"Une configuration non standard peut limiter l'édition automatique pour préserver les règles manuelles. Ne partagez jamais PrivateKey, PresharedKey ni aucun secret."
],
"example_title": "Exemple",
"example_lines": [
"[Interface]",
"Address = 10.0.0.1/24",
"ListenPort = 51820",
"",
"[Peer]",
"AllowedIPs = 10.0.0.2/32"
],
"warning": "Ne partagez jamais PrivateKey, PresharedKey ni aucun autre secret."
}
]
},
{
"id": "clients",
"title": "Clients",
"intro": "Un client peut être un téléphone, un ordinateur, un routeur ou tout autre pair WireGuard. Cette page gère configurations, règles d'accès, expirations, horaires et liens Site-to-Site.",
"topics": [
{
"title": "Client classique",
"paragraphs": [
"Choisissez Client pour un téléphone ou un ordinateur. WGTools attribue une adresse VPN libre et génère les clés."
],
"bullets": [
"Le nom est seulement une étiquette dans WGTools.",
"L'Endpoint du fichier généré indique où l'appareil doit joindre le serveur WireGuard.",
"Le DNS peut être défini par client ou hérité d'un modèle de groupe."
],
"example_title": "Exemple",
"example_lines": [
"Nom: Téléphone",
"Adresse VPN: 10.0.0.3/32",
"Endpoint: vpn.example.com:51820"
],
"warning": ""
},
{
"title": "Trafic VPN et AllowedIPs",
"paragraphs": [
"Dans la configuration client, AllowedIPs détermine le trafic envoyé dans le tunnel. C'est différent des règles d'accès côté serveur."
],
"bullets": [
"Tout le trafic fait passer Internet et les réseaux distants par le VPN ; vous pouvez aussi choisir certains réseaux seulement.",
"Le mode d'exclusion du réseau local préserve l'accès direct à une imprimante ou un routeur lorsque Internet passe par le VPN.",
"Une règle serveur peut bloquer une destination même présente dans AllowedIPs."
],
"example_title": "Exemple",
"example_lines": [
"0.0.0.0/0 — tout le trafic IPv4 par le VPN",
"192.168.50.0/24 — un seul réseau distant"
],
"warning": ""
},
{
"title": "Groupes de clients",
"paragraphs": [
"Un groupe permet de réutiliser les mêmes règles et modèles de configuration pour plusieurs clients."
],
"bullets": [
"Les groupes définissent l'accès Internet/LAN et les exceptions autorisées ou bloquées.",
"Ils peuvent fournir des routes, DNS et Keepalive par défaut aux nouvelles configurations.",
"Les règles côté serveur changent immédiatement, mais le fichier déjà installé sur le téléphone ne se modifie pas seul. Appliquez le modèle et remettez un fichier ou QR si nécessaire."
],
"example_title": "Exemple",
"example_lines": [
"Groupe « Invités »",
"Internet : autorisé",
"LAN : bloqué",
"Membres: Téléphone-1, Tablet-1"
],
"warning": ""
},
{
"title": "Règles individuelles",
"paragraphs": [
"Un client peut hériter des règles du groupe ou définir ses propres exceptions."
],
"bullets": [
"Une exception autorisant ou bloquant un client prime sur l'exception correspondante du groupe.",
"Cela permet, par exemple, de donner à un salarié l'accès à un serveur bloqué pour son groupe."
],
"example_title": "Exemple",
"example_lines": [
"Le groupe bloque 192.168.1.0/24",
"Le client autorise en plus 192.168.1.50/32"
],
"warning": ""
},
{
"title": "Client Site-to-Site",
"paragraphs": [
"Utilisez Site-to-Site lorsqu'un pair représente un réseau entier. Saisissez les réseaux derrière ce pair dans Réseaux distants."
],
"bullets": [
"WGTools ajoute automatiquement les routes correspondantes au serveur.",
"Ces réseaux peuvent ensuite être publiés via Nodes.",
"Un téléphone ou ordinateur normal n'a pas besoin du mode Site-to-Site."
],
"example_title": "Exemple",
"example_lines": [
"Pair routeur: 10.0.0.20/32",
"Réseau distant: 192.168.50.0/24"
],
"warning": ""
},
{
"title": "Connexion directe et VPS Relay",
"paragraphs": [
"Lorsque VPS Relay est installé pour l'interface, les clients compatibles peuvent se connecter directement ou via Relay."
],
"bullets": [
"Le mode direct est préférable si le port WireGuard est accessible depuis Internet.",
"Relay est utile derrière CGNAT ou si l'UDP entrant est impossible.",
"Adresse VPN et règles d'accès du client restent inchangées."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "PSK, isolation et renouvellement des clés",
"paragraphs": [
"WireGuard utilise déjà une paire clé publique/privée. Un PSK facultatif ajoute un secret partagé."
],
"bullets": [
"L'isolation empêche ce client de parler aux autres adresses du même réseau VPN.",
"Le renouvellement génère une nouvelle paire de clés et, si activé, un nouveau PSK. L'ancien fichier cesse de fonctionner : fournissez un nouveau fichier ou QR.",
"L'adresse VPN, le groupe, les horaires et l'historique du trafic sont conservés."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Accès temporaire",
"paragraphs": [
"L'accès peut expirer après 1, 3 ou 6 heures, un jour ou à une date/heure personnalisée."
],
"bullets": [
"À l'échéance, un service en arrière-plan applique l'action d'expiration choisie.",
"Pour réactiver un client expiré conservé, choisissez une nouvelle date ou Sans limite."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Horaires d'accès",
"paragraphs": [
"Un calendrier autorise ou bloque automatiquement un client certains jours et heures sans modifier son fichier de configuration."
],
"bullets": [
"Il utilise l'heure locale du serveur WireGuard.",
"Une plage peut traverser minuit, par exemple 22:00–06:00.",
"Au retour d'une plage autorisée, WGTools réactive le même pair."
],
"example_title": "Exemple",
"example_lines": [
"Lun–Ven: 08:00–19:00"
],
"warning": ""
},
{
"title": "État, Endpoint et trafic",
"paragraphs": [
"Le tableau affiche le dernier handshake, l'Endpoint et les totaux RX/TX."
],
"bullets": [
"Un handshake récent indique que le client a communiqué avec le serveur récemment.",
"L'Endpoint d'un téléphone peut changer entre Wi-Fi et LTE ; c'est normal.",
"La recherche rapide filtre par nom, adresse, groupe et état."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Configuration et QR",
"paragraphs": [
"Un fichier .conf convient aux ordinateurs et routeurs ; un QR à l'application mobile WireGuard."
],
"bullets": [
"La PrivateKey du client figure dans le fichier et le QR : protégez-les comme un mot de passe.",
"Réexporter la configuration d'un client géré réutilise les clés enregistrées dans WGTools.",
"Après renouvellement des clés, fournissez toujours une nouvelle configuration."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Modifier et supprimer",
"paragraphs": [
"WGTools sauvegarde la configuration WireGuard avant les changements gérés et les applique de façon sécurisée."
],
"bullets": [
"Supprimer un client géré retire son pair, ses clés enregistrées et les règles associées.",
"Un fichier conservé sur l'appareil n'est pas effacé à distance, mais il ne permet plus de se connecter."
],
"example_title": "",
"example_lines": [],
"warning": ""
}
]
},
{
"id": "settings",
"title": "Paramètres",
"intro": "Vous trouverez ici l'apparence, les sauvegardes, Telegram, l'e-mail, HTTPS, les utilisateurs, l'audit et les mises à jour.",
"topics": [
{
"title": "Apparence et langue",
"paragraphs": [
"Choisissez un thème clair, sombre ou système et la langue de l'interface."
],
"bullets": [
"Réduire la barre latérale n'affiche que les icônes.",
"Son état est conservé dans le navigateur et appliqué immédiatement.",
"La langue est enregistrée par WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Actualisation de l'état",
"paragraphs": [
"L'intervalle d'actualisation définit la fréquence de rafraîchissement des états serveur/client. Le seuil En ligne définit combien de temps après un handshake un pair est considéré connecté."
],
"bullets": [],
"example_title": "Exemple",
"example_lines": [
"Actualisation: 5 s",
"En ligne: 180 s"
],
"warning": ""
},
{
"title": "Sauvegardes automatiques de configuration",
"paragraphs": [
"WGTools conserve un historique des configurations WireGuard avant les opérations risquées afin de revenir rapidement sur un changement."
],
"bullets": [
"Vous pouvez définir le nombre de copies conservées.",
"Cet historique diffère de la sauvegarde portable complète de WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Sauvegarde complète et restauration",
"paragraphs": [
"Un fichier .wgtbackup sert aux migrations et à la reprise après incident."
],
"bullets": [
"Il inclut configurations WireGuard, base des utilisateurs et paramètres, groupes, données des clients, paramètres Telegram/SMTP et état nécessaire pour restaurer VPS Relay/Nodes.",
"Avant restauration, WGTools vérifie l'archive et sauvegarde l'état actuel. En cas d'échec, il tente un retour arrière automatique.",
"Après une restauration réussie, la session web actuelle est terminée : reconnectez-vous avec un compte de la base restaurée."
],
"example_title": "",
"example_lines": [],
"warning": ".wgtbackup contient clés privées, PSK, empreintes des mots de passe, jeton Telegram et mot de passe SMTP. Conservez-le comme un mot de passe."
},
{
"title": "Bot Telegram",
"paragraphs": [
"Telegram permet de consulter et gérer WireGuard sans ouvrir le panneau web."
],
"bullets": [
"Créez un bot avec @BotFather, collez son jeton, activez-le et envoyez /start.",
"Si votre identifiant Telegram n'est pas autorisé, le bot indique son numéro : ajoutez-le à la liste autorisée.",
"Les commandes d'administration fonctionnent uniquement dans les discussions privées : état, clients, création/suppression, réédition des configurations/QR et commandes WireGuard."
],
"example_title": "Exemple",
"example_lines": [
"Endpoint par défaut: vpn.example.com",
"DNS: 1.1.1.1, 8.8.8.8"
],
"warning": ""
},
{
"title": "E-mail / SMTP et récupération du mot de passe",
"paragraphs": [
"SMTP permet la fonction « Mot de passe oublié ? » sur la page de connexion."
],
"bullets": [
"STARTTLS, TLS/SSL et SMTP simple sur un réseau local de confiance sont pris en charge. Le nom d'utilisateur peut rester vide si le serveur n'exige pas d'authentification.",
"Le mot de passe reste local et n'est jamais renvoyé au navigateur. Le bouton Test envoie un e-mail au destinataire choisi.",
"Les codes de récupération sont à usage unique, stockés sous forme de hachage, valables 15 minutes et limités en tentatives."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "HTTPS intégré",
"paragraphs": [
"WGTools peut servir HTTPS directement, sans Nginx, Caddy ou proxy inverse externe."
],
"bullets": [
"Saisissez domaine/IP publique, e-mail, port HTTPS et chemin privé, puis Obtenir / renouveler le certificat. Cette action enregistre également les paramètres HTTPS.",
"HTTPS ne peut être activé qu'avec un certificat approprié. Après émission, activez-le et Enregistrer ; toute nouvelle adresse nécessite son certificat.",
"Le port TCP 80 doit être accessible depuis Internet pour la délivrance et le renouvellement. Le panneau utilise le port HTTPS choisi (443 ou 8443, par exemple). Un chemin comme /MyWGTools/ définit son URL ; les autres chemins renvoient 404 lorsque HTTPS intégré est activé.",
"WGTools affiche les ports occupés et n'arrête pas les serveurs web tiers ; un timer systemd renouvelle le certificat automatiquement.",
"Le chemin privé ne remplace pas l'authentification : évitez d'exposer le panneau et utilisez des identifiants robustes."
],
"example_title": "Exemple",
"example_lines": [
"https://wg.example.com/MyWGTools/"
],
"warning": "Un chemin privé ne remplace pas l’authentification. N'exposez pas inutilement le panneau et utilisez des identifiants robustes."
},
{
"title": "Utilisateurs",
"paragraphs": [
"Le premier compte est créé lors de l'installation ; d'autres peuvent être ajoutés dans Paramètres."
],
"bullets": [
"Tous les utilisateurs disposent actuellement des mêmes droits ; e-mail et mot de passe peuvent être modifiés et des comptes supprimés.",
"Chacun peut activer MFA avec Google Authenticator ou une application TOTP et recevoir une fois des codes de récupération.",
"En cas de perte du téléphone, root peut désactiver MFA pour un utilisateur avec la commande wgtools. Le compte courant et le dernier compte restant ne peuvent être supprimés.",
"Un changement ou une récupération de mot de passe, ainsi que l'activation/désactivation MFA, invalident les anciennes sessions web."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Journal d'audit",
"paragraphs": [
"L'audit répertorie les opérations d'administration web/Telegram importantes et l'historique utile des connexions WireGuard."
],
"bullets": [
"Les actions web indiquent le nom WGTools ; celles de Telegram contiennent @username si disponible et l'identifiant numérique.",
"Changements de configuration, consultation de fichiers/QR, mises à jour et erreurs utiles sont enregistrés.",
"Mots de passe, clés privées, PSK, jetons et contenu complet des configurations ne sont jamais inscrits au journal. Celui-ci est automatiquement purgé selon sa durée de conservation."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Mises à jour WGTools",
"paragraphs": [
"WGTools vérifie régulièrement les versions stables sur GitHub mais n'installe rien sans confirmation explicite."
],
"bullets": [
"Une nouvelle version entraîne l'affichage d'un avis.",
"Avant la mise à jour, WGTools crée une sauvegarde .wgtbackup complète et une archive séparée pour revenir à l'ancienne version.",
"Si la nouvelle application ne démarre pas, il tente de restaurer l'ancienne. La version actuelle apparaît dans l'interface et dans À propos."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Commande wgtools et accès d'urgence",
"paragraphs": [
"La commande root wgtools est utile lorsque le panneau web n'est plus accessible."
],
"bullets": [
"Elle indique l'état de WGTools, WireGuard, Nodes, Telegram, des tâches et du Relay Agent local ainsi que l'URL du panneau.",
"Elle peut démarrer, arrêter, redémarrer le panneau ou WireGuard et consulter les journaux. En cas de port HTTPS ou chemin privé erroné, elle peut désactiver HTTPS intégré et rétablir HTTP.",
"Elle permet également à root de désactiver MFA pour un utilisateur ayant perdu l'authentificateur et les codes.",
"La désinstallation retire panneau et services sans supprimer WireGuard ni les données réutilisables. FULL CLEANUP, après confirmation DELETE ALL, efface WGTools, Relay local et WireGuard sur cet hôte seulement ; les agents des autres VPS ne sont pas touchés."
],
"example_title": "Exemple",
"example_lines": [
"root@server:~# wgtools"
],
"warning": ""
},
{
"title": "Emplacement des données",
"paragraphs": [
"La modification manuelle est rarement nécessaire, mais connaître ces chemins aide au dépannage et aux sauvegardes."
],
"bullets": [],
"example_title": "Chemins principaux",
"example_lines": [
"/etc/wireguard/wg0.conf — configuration WireGuard",
"/var/lib/wgtools/wgtools.db — utilisateurs et paramètres",
"/var/lib/wgtools/clients/ — données des clients gérés",
"/var/lib/wgtools/backups/ — historique de configuration",
"/var/lib/wgtools/update-backups/ — archives de retour arrière"
],
"warning": ""
}
]
}
]
-663
View File
@@ -1,663 +0,0 @@
[
{
"id": "dashboard",
"title": "Panoramica",
"intro": "La panoramica risponde a tre domande: WireGuard funziona, chi è connesso e il server è in buone condizioni?",
"topics": [
{
"title": "Da dove iniziare",
"paragraphs": [
"La barra superiore mostra l'interfaccia WireGuard selezionata. Se ce ne sono più di una, le pagine WGTools utilizzano quella attiva."
],
"bullets": [
"Avvia attiva WireGuard, Arresta lo ferma e Riavvia riavvia brevemente l'interfaccia.",
"Telefoni e computer normalmente si riconnettono da soli dopo un riavvio.",
"Quando l'interfaccia è ferma, i suoi client non possono collegarsi."
],
"example_title": "Esempio",
"example_lines": [
"wg0 · Home · 10.0.0.1/24 · UDP 51820"
],
"warning": ""
},
{
"title": "CPU, memoria, rete e tempo di attività",
"paragraphs": [
"Questi dati si riferiscono all'intero host Debian, non soltanto a WireGuard."
],
"bullets": [
"CPU indica il carico attuale del processore; Memoria mostra RAM utilizzata e totale.",
"Rete indica la velocità corrente di ricezione e trasmissione sull'interfaccia esterna.",
"Il tempo di attività decorre dall'ultimo avvio del sistema; i grafici delle ultime 24 ore aiutano a individuare carichi anomali e traffico persistente."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Chi è connesso",
"paragraphs": [
"WireGuard non mantiene una sessione come un sito web. WGTools considera un client online se l'ultimo handshake è abbastanza recente."
],
"bullets": [
"Handshake è l'ultimo scambio di controllo WireGuard riuscito; Endpoint è l'IP pubblico e la porta utilizzati dal client.",
"«Mai» significa che il server non ha ancora ricevuto un handshake valido da quel peer.",
"La ricerca rapida filtra per nome, indirizzo VPN, tipo ed Endpoint."
],
"example_title": "Esempio",
"example_lines": [
"Telefono · 10.0.0.3/32",
"Endpoint: 203.0.113.25:63275",
"Handshake: 18 s fa"
],
"warning": ""
},
{
"title": "Traffico",
"paragraphs": [
"WGTools conserva i totali RX/TX separatamente dai contatori temporanei di WireGuard; le statistiche rimangono anche dopo il riavvio dell'interfaccia o del server."
],
"bullets": [
"Il riquadro Traffico mostra il volume accumulato dell'interfaccia scelta; ogni client ha i propri totali RX/TX.",
"Reimposta ricomincia il conteggio dal momento corrente.",
"RX/TX nel riquadro Rete indica la velocità istantanea, non il volume accumulato."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Più interfacce WireGuard",
"paragraphs": [
"Un singolo server può gestire varie VPN indipendenti, per esempio casa e ufficio."
],
"bullets": [
"Cambiare la scelta nella barra superiore non modifica la configurazione: seleziona solo i dati visibili in Panoramica, Server e Client.",
"Ogni interfaccia possiede indirizzi, porta, client, percorsi e regole di accesso propri."
],
"example_title": "Esempio",
"example_lines": [
"wg0 · Home · 10.0.0.1/24",
"wg1 · Lavoro · 10.0.1.1/24"
],
"warning": ""
}
]
},
{
"id": "server",
"title": "Server",
"intro": "Questa sezione gestisce interfacce WireGuard, instradamento, accesso alle reti, collegamenti Nodes e accesso pubblico tramite VPS Relay.",
"topics": [
{
"title": "Reti VPN e interfacce WireGuard",
"paragraphs": [
"Un'interfaccia WireGuard si comporta come una scheda di rete virtuale con una propria sottorete VPN. Ogni client riceve un indirizzo di quella rete."
],
"bullets": [
"I nomi di sistema sono di solito wg0, wg1 e così via. Un nome descrittivo come Home o Office serve solo per comodità.",
"ListenPort è la porta UDP a cui si collegano i client.",
"Di norma MTU può restare su Auto; va modificato manualmente solo per problemi di rete particolari, LTE o PPPoE."
],
"example_title": "Esempio",
"example_lines": [
"Rete VPN: 10.0.0.0/24",
"Indirizzo server: 10.0.0.1/24",
"Client: 10.0.0.2, 10.0.0.3, ...",
"Porta: UDP 51820"
],
"warning": ""
},
{
"title": "Prima configurazione e altre interfacce",
"paragraphs": [
"Su un Debian pulito WGTools può installare WireGuard e creare la prima interfaccia tramite procedura guidata. In seguito puoi aggiungere wg1, wg2 ecc."
],
"bullets": [
"WGTools propone una sottorete VPN libera, una porta UDP e una tabella di policy routing.",
"Prima della creazione controlla le sovrapposizioni tra reti e le porte già occupate.",
"Ogni interfaccia ha chiavi e configurazione proprie; prima dell'eliminazione viene effettuato un backup e vengono rimossi i dati gestiti correlati."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "NAT spiegato semplicemente",
"paragraphs": [
"NAT/MASQUERADE consente a un client VPN di raggiungere LAN o Internet usando come sorgente l'indirizzo del server WireGuard. In casa è spesso la scelta più semplice."
],
"bullets": [
"Con NAT attivo, di solito il router domestico non ha bisogno di una rotta di ritorno specifica verso la VPN.",
"Senza NAT, il routing reale richiede rotte di ritorno sui router vicini."
],
"example_title": "Esempio",
"example_lines": [
"Telefono 10.0.0.3 → WGTools 192.168.1.10 → Internet",
"Il router di casa vede la sorgente 192.168.1.10"
],
"warning": ""
},
{
"title": "Rotte e policy routing",
"paragraphs": [
"Una rotta indica a Linux quale interfaccia o gateway conduce a una rete. Il policy routing permette di scegliere una tabella separata per un traffico specifico, ad esempio quello dei client VPN."
],
"bullets": [
"Una semplice installazione domestica spesso non richiede una tabella dedicata.",
"È utile se i client devono usare un gateway specifico, un'altra VPN o una WAN separata.",
"WGTools distingue rotte di sistema, Site-to-Site e manuali. Le rotte personalizzate si possono aggiungere, modificare ed eliminare."
],
"example_title": "Esempio",
"example_lines": [
"Sorgente: 10.0.0.0/24",
"Tabella: 200",
"Default via: 192.168.1.1 dev eth0"
],
"warning": ""
},
{
"title": "Firewall e accesso alla rete",
"paragraphs": [
"Il firewall stabilisce se un traffico è consentito; il routing determina soltanto dove inviarlo. Sono due aspetti diversi."
],
"bullets": [
"Puoi consentire o bloccare a un client VPN l'accesso a una determinata rete.",
"WGTools genera automaticamente le regole di gruppo e le eccezioni per singolo client.",
"Prima delle modifiche esegue un backup e ripristina la configurazione precedente se WireGuard non si avvia."
],
"example_title": "Esempio",
"example_lines": [
"10.0.0.6/32 → blocca → 192.168.1.0/24",
"Gli altri client possono ancora raggiungere la LAN"
],
"warning": ""
},
{
"title": "Site-to-Site: collegare due reti",
"paragraphs": [
"Site-to-Site serve quando un peer rappresenta un'intera rete remota anziché un singolo telefono o laptop."
],
"bullets": [
"Indica le reti dietro al peer nel campo Reti remote: WGTools crea automaticamente le rotte.",
"Il passaggio del peer a offline non elimina le rotte configurate.",
"Anche il lato remoto deve avere una rotta di ritorno tramite WireGuard."
],
"example_title": "Esempio",
"example_lines": [
"Home: 192.168.1.0/24",
"Peer ufficio: 10.0.0.20/32",
"LAN ufficio: 192.168.50.0/24",
"Risultato: i dispositivi di casa raggiungono 192.168.50.x"
],
"warning": ""
},
{
"title": "Nodes: collegare server WGTools",
"paragraphs": [
"Nodes collega più installazioni WGTools con un tunnel WireGuard interno dedicato. Un server diventa HUB e gli altri si associano con un codice monouso."
],
"bullets": [
"L'HUB usa lo stesso numero di porta in UDP per WireGuard e in TCP per l'associazione iniziale protetta. Poi la sincronizzazione passa dentro wgnode0, indipendentemente dall'URL del pannello, dalla porta HTTPS e dal percorso privato.",
"WGTools rileva reti VPN, Site-to-Site e LAN: pubblica solo quelle necessarie. Le reti individuate successivamente non vengono pubblicate automaticamente; vanno aggiunte esplicitamente. Le modifiche alle reti generano un avviso.",
"Le reti pubblicate su Nodes diversi non devono sovrapporsi (per esempio 10.0.0.0/24 in due siti). WGTools blocca i conflitti.",
"La vista Dettagli mostra reti e client remoti in sola lettura. Pubblicare una rete la rende raggiungibile dagli altri nodi: limita l'accesso al necessario."
],
"example_title": "Esempio: home + VPS",
"example_lines": [
"HUB: vpn.example.com:51950",
"Casa pubblica: 192.168.1.0/24",
"VPS pubblica: 10.20.0.0/24",
"Dopo l’associazione entrambi i lati passano da wgnode0"
],
"warning": ""
},
{
"title": "VPS Relay: casa senza IP pubblico",
"paragraphs": [
"VPS Relay aiuta dietro CGNAT o quando i client non riescono a raggiungere direttamente il server. Un VPS pubblico diventa punto di ingresso; server WireGuard e regole rimangono sull'host WGTools."
],
"bullets": [
"Aggiungi il VPS via SSH: WGTools verifica host e porte e poi installa Relay Agent.",
"Un agente può servire diversi controller WGTools indipendenti con connessioni e chiavi separate.",
"I client supportati possono collegarsi direttamente o tramite Relay. Rimuovere il VPS dal pannello scollega il trasporto locale ma conserva agente e tenant sul VPS per una futura riconnessione.",
"Relay offre un ingresso pubblico ai client; Nodes collega i server WGTools e le loro reti. Sono funzioni diverse."
],
"example_title": "Esempio",
"example_lines": [
"Telefono → VPS pubblico → trasporto Relay protetto → WGTools di casa → rete necessaria"
],
"warning": ""
},
{
"title": "Diagnostica",
"paragraphs": [
"La diagnostica controlla WireGuard, inoltro IP, porte, rotte e servizi, utile quando un client non si collega o una rete non risponde."
],
"bullets": [
"Verifica prima che l'interfaccia sia attiva e che esista un handshake recente. Se l'handshake funziona ma la destinazione no, controlla rotte, firewall e percorso di ritorno.",
"Server → Percorso mostra gli hop di traceroute che rispondono, RTT medio e aumento della latenza. Gli hop senza risposta vengono indicati in modo neutro, non come guasti accertati.",
"La mappa interattiva consente spostamento e zoom; toccando un hop appaiono IP, località approssimativa, ASN/provider e RTT.",
"Con la mappa attiva, gli IP pubblici vengono geolocalizzati tramite ipwho.is e le mappe caricate da OpenStreetMap; gli IP privati non vengono inviati. Traceroute non misura la banda in Mbit/s.",
"La diagnostica di per sé non cambia la configurazione."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Applicazione sicura delle modifiche",
"paragraphs": [
"Le modifiche a server, rotte e firewall possono richiedere un breve riavvio di WireGuard."
],
"bullets": [
"WGTools salva prima una copia della configurazione.",
"Se la nuova configurazione non si avvia, tenta di ripristinare automaticamente quella precedente.",
"I client possono disconnettersi per poco e di norma si ricollegano da soli."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Scheda Configurazione",
"paragraphs": [
"È un editor diretto di /etc/wireguard/<interface>.conf per opzioni non esposte dai moduli standard."
],
"bullets": [
"Usalo solo se conosci la sintassi WireGuard e i comandi PostUp/PostDown.",
"WGTools convalida ed esegue un backup del file prima di applicarlo.",
"Una configurazione insolita può limitare la modifica automatica per proteggere regole manuali. Non condividere PrivateKey, PresharedKey o altri segreti."
],
"example_title": "Esempio",
"example_lines": [
"[Interface]",
"Address = 10.0.0.1/24",
"ListenPorta = 51820",
"",
"[Peer]",
"AllowedIPs = 10.0.0.2/32"
],
"warning": "Non condividere PrivateKey, PresharedKey o altri segreti."
}
]
},
{
"id": "clients",
"title": "Client",
"intro": "Un client può essere un telefono, laptop, router o altro peer WireGuard. Questa pagina gestisce configurazioni, criteri di accesso, scadenze, orari e Site-to-Site.",
"topics": [
{
"title": "Client normale",
"paragraphs": [
"Scegli Client per telefoni e computer. WGTools assegna un indirizzo VPN libero e crea le chiavi."
],
"bullets": [
"Il nome è soltanto un'etichetta dentro WGTools.",
"Endpoint nella configurazione generata è l'indirizzo usato dal dispositivo per trovare il server WireGuard.",
"Il DNS può essere specifico del client oppure ereditato da un modello di gruppo."
],
"example_title": "Esempio",
"example_lines": [
"Nome: Telefono",
"Indirizzo VPN: 10.0.0.3/32",
"Endpoint: vpn.example.com:51820"
],
"warning": ""
},
{
"title": "Traffico VPN e AllowedIPs",
"paragraphs": [
"AllowedIPs nella configurazione del client definisce cosa il dispositivo invia nel tunnel. È diverso dai permessi configurati sul server."
],
"bullets": [
"Tutto il traffico inoltra sia Internet sia le reti remote nella VPN; puoi anche selezionare soltanto alcune reti.",
"L'esclusione della rete locale permette di raggiungere direttamente stampante o router pur usando Internet tramite VPN.",
"Il server può bloccare una destinazione anche se compare in AllowedIPs."
],
"example_title": "Esempio",
"example_lines": [
"0.0.0.0/0 — tutto il traffico IPv4 nella VPN",
"192.168.50.0/24 — solo una rete remota"
],
"warning": ""
},
{
"title": "Gruppi di client",
"paragraphs": [
"Un gruppo permette di definire una volta sola regole e modello di configurazione da riutilizzare per diversi client."
],
"bullets": [
"I gruppi regolano accesso a Internet, LAN ed eccezioni di consenso o blocco.",
"Possono fornire rotte, DNS e Keepalive predefiniti alle nuove configurazioni.",
"Le modifiche dei criteri server sono immediate, ma un file già installato sul telefono non cambia da solo: applica il modello aggiornato e consegna un nuovo file o QR se necessario."
],
"example_title": "Esempio",
"example_lines": [
"Gruppo «Ospiti»",
"Internet: consentito",
"LAN: bloccata",
"Membri: Telefono-1, Tabellat-1"
],
"warning": ""
},
{
"title": "Criteri del singolo client",
"paragraphs": [
"Un client può ereditare i criteri del gruppo oppure avere eccezioni proprie."
],
"bullets": [
"Un'eccezione per il singolo client, sia di consenso sia di blocco, prevale su quella di gruppo.",
"Per esempio, un dipendente può accedere a un server vietato agli altri membri del gruppo."
],
"example_title": "Esempio",
"example_lines": [
"Il gruppo blocca 192.168.1.0/24",
"Il client consente anche 192.168.1.50/32"
],
"warning": ""
},
{
"title": "Client Site-to-Site",
"paragraphs": [
"Usa Site-to-Site quando un peer rappresenta un'intera rete. Inserisci le reti dietro al peer come Reti remote."
],
"bullets": [
"WGTools aggiunge automaticamente le relative rotte al server.",
"Successivamente possono essere pubblicate tramite Nodes.",
"Un normale telefono o laptop non richiede la modalità Site-to-Site."
],
"example_title": "Esempio",
"example_lines": [
"Peer router: 10.0.0.20/32",
"Rete remota: 192.168.50.0/24"
],
"warning": ""
},
{
"title": "Connessione diretta e VPS Relay",
"paragraphs": [
"Quando VPS Relay è installato per l'interfaccia, i client compatibili possono scegliere la connessione diretta o tramite Relay."
],
"bullets": [
"La connessione diretta è preferibile quando la porta WireGuard è raggiungibile da Internet.",
"Relay aiuta con CGNAT o in assenza di UDP in ingresso.",
"Indirizzo VPN e criteri di accesso del client non cambiano."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "PSK, isolamento e rotazione delle chiavi",
"paragraphs": [
"WireGuard usa già chiavi pubbliche/private. Un PSK opzionale aggiunge un segreto condiviso."
],
"bullets": [
"L'isolamento impedisce al client di comunicare con altri indirizzi della stessa rete VPN.",
"La rotazione crea una nuova coppia di chiavi e, se abilitato, un nuovo PSK. La vecchia configurazione smette di funzionare: consegna un nuovo file o QR.",
"Indirizzo VPN, gruppo, orari e statistiche del traffico restano invariati."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Accesso temporaneo",
"paragraphs": [
"Un client può scadere dopo 1, 3 o 6 ore, un giorno oppure a una data e ora personalizzate."
],
"bullets": [
"Alla scadenza il servizio in background esegue l'azione scelta.",
"Per riattivare un client scaduto ma salvato, imposta una nuova scadenza oppure Nessun limite."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Programmazione degli accessi",
"paragraphs": [
"Gli orari abilitano e bloccano automaticamente un client in giorni e fasce prestabilite senza sostituirne la configurazione."
],
"bullets": [
"Si utilizza l'ora locale del server WireGuard.",
"Le fasce possono attraversare la mezzanotte, per esempio 22:00–06:00.",
"Al successivo periodo consentito WGTools ripristina lo stesso peer."
],
"example_title": "Esempio",
"example_lines": [
"Lun–Ven: 08:00–19:00"
],
"warning": ""
},
{
"title": "Stato, Endpoint e traffico",
"paragraphs": [
"La tabella mostra ultimo handshake, Endpoint e totali RX/TX."
],
"bullets": [
"Un handshake recente indica che il client ha comunicato da poco con il server.",
"L'Endpoint di un telefono può cambiare passando tra Wi-Fi e LTE: è normale.",
"La ricerca rapida filtra per nome, indirizzo, gruppo e stato."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Configurazione e QR",
"paragraphs": [
"Un file .conf è adatto a computer e router, mentre il QR all'app mobile WireGuard."
],
"bullets": [
"La PrivateKey del client si trova sia nel file sia nel QR: proteggili come una password.",
"La nuova emissione della configurazione di un client gestito riutilizza le chiavi conservate in WGTools.",
"Dopo la rotazione delle chiavi fornisci sempre una nuova configurazione."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Modifica ed eliminazione",
"paragraphs": [
"WGTools esegue un backup della configurazione WireGuard prima delle modifiche gestite e le applica in sicurezza."
],
"bullets": [
"Eliminare un client gestito rimuove peer, chiavi archiviate e relative regole.",
"Un file già salvato sul dispositivo non viene cancellato da remoto, ma non può più stabilire la connessione."
],
"example_title": "",
"example_lines": [],
"warning": ""
}
]
},
{
"id": "settings",
"title": "Impostazioni",
"intro": "Qui trovi aspetto, backup, Telegram, e-mail, HTTPS, utenti, audit e aggiornamenti.",
"topics": [
{
"title": "Aspetto e lingua",
"paragraphs": [
"Scegli il tema chiaro, scuro o di sistema e la lingua dell'interfaccia."
],
"bullets": [
"Ridurre la barra laterale lascia visibili solo le icone.",
"Lo stato della barra viene memorizzato nel browser e cambia subito.",
"La lingua scelta viene salvata da WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Aggiornamento dello stato",
"paragraphs": [
"L'intervallo di aggiornamento definisce la frequenza con cui vengono aggiornati i dati di server e client. La soglia online stabilisce per quanto tempo dopo un handshake un peer risulta connesso."
],
"bullets": [],
"example_title": "Esempio",
"example_lines": [
"Aggiornamento: 5 s",
"Online: 180 s"
],
"warning": ""
},
{
"title": "Backup automatici della configurazione",
"paragraphs": [
"Prima delle modifiche rischiose WGTools conserva una cronologia delle configurazioni WireGuard per ripristinare rapidamente quella precedente."
],
"bullets": [
"Puoi scegliere il numero di copie conservate.",
"Questa cronologia è diversa dal backup completo e portabile di WGTools."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Backup completo e ripristino",
"paragraphs": [
"Il file .wgtbackup serve per migrare su un nuovo server o recuperare dopo un guasto."
],
"bullets": [
"Include configurazioni WireGuard, database di utenti/impostazioni, gruppi, dati dei client, impostazioni Telegram/SMTP e stato necessario per ripristinare VPS Relay/Nodes.",
"WGTools verifica l'archivio e salva lo stato attuale prima del ripristino. Se l'operazione fallisce, tenta un rollback automatico.",
"Dopo il ripristino la sessione web corrente viene chiusa; accedi con un account del database ripristinato."
],
"example_title": "",
"example_lines": [],
"warning": ".wgtbackup contiene chiavi private, PSK, hash delle password, token Telegram e password SMTP. Custodiscilo come una password."
},
{
"title": "Bot Telegram",
"paragraphs": [
"Telegram permette di controllare e gestire WireGuard senza aprire il pannello web."
],
"bullets": [
"Crea il bot con @BotFather, incolla il token, attivalo e invia /start.",
"Se il tuo ID Telegram non è autorizzato, il bot mostra l'ID numerico: aggiungilo alla lista consentita.",
"I comandi amministrativi sono accettati soltanto nelle chat private: stato, client, creazione/eliminazione, riconsegna configurazioni/QR e gestione WireGuard."
],
"example_title": "Esempio",
"example_lines": [
"Endpoint predefinito: vpn.example.com",
"DNS: 1.1.1.1, 8.8.8.8"
],
"warning": ""
},
{
"title": "E-mail / SMTP e recupero password",
"paragraphs": [
"SMTP gestisce «Password dimenticata?» nella schermata di accesso."
],
"bullets": [
"Sono supportati STARTTLS, TLS/SSL e SMTP semplice su una LAN affidabile. Il nome utente può essere vuoto se il server SMTP non richiede autenticazione.",
"La password resta salvata localmente e non viene mai restituita al browser. Il pulsante Test invia un messaggio all'indirizzo scelto.",
"I codici di recupero sono monouso, memorizzati come hash, validi 15 minuti e limitati nei tentativi."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "HTTPS integrato",
"paragraphs": [
"WGTools può fornire HTTPS senza Nginx, Caddy o proxy inversi esterni."
],
"bullets": [
"Inserisci dominio/IP pubblico, e-mail, porta HTTPS e percorso privato, poi scegli Ottieni / rinnova certificato. L'azione salva anche le impostazioni HTTPS.",
"HTTPS si può abilitare solo con un certificato appropriato. Dopo l'emissione attivalo e premi Salva; quando dominio o IP cambia serve un nuovo certificato.",
"La porta TCP 80 deve essere raggiungibile da Internet per emissione e rinnovo. Il pannello usa la porta scelta, per esempio 443 o 8443. Il percorso privato imposta l'URL, ad esempio /MyWGTools/; gli altri percorsi restituiscono 404 con HTTPS attivo.",
"WGTools indica le porte locali occupate e non arresta server web di terzi; un timer systemd rinnova automaticamente il certificato.",
"Un percorso privato non sostituisce l'autenticazione. Evita di esporre inutilmente il pannello e usa credenziali robuste."
],
"example_title": "Esempio",
"example_lines": [
"https://wg.example.com/MyWGTools/"
],
"warning": "Un percorso privato non sostituisce l’autenticazione. Evita di esporre il pannello inutilmente e usa credenziali robuste."
},
{
"title": "Utenti",
"paragraphs": [
"Il primo utente viene creato durante la configurazione di WGTools. Altri utenti possono essere aggiunti da Impostazioni."
],
"bullets": [
"Attualmente tutti gli utenti hanno gli stessi permessi. È possibile cambiare e-mail/password ed eliminare account.",
"Ogni utente può abilitare MFA con Google Authenticator o app TOTP e ricevere una volta codici di recupero.",
"Se perde l'app di autenticazione, root può disattivare MFA tramite il comando wgtools. Non puoi eliminare l'utente corrente né l'ultimo account.",
"Modifiche o recupero password e attivazione/disattivazione MFA invalidano le vecchie sessioni web dell'utente."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Registro di audit",
"paragraphs": [
"L'audit registra le operazioni di amministrazione web/Telegram e la cronologia utile delle connessioni WireGuard."
],
"bullets": [
"Le azioni web riportano il nome WGTools; quelle Telegram @username, se disponibile, e ID numerico.",
"Sono registrati cambiamenti di configurazione, visualizzazione di configurazioni/QR, aggiornamenti ed errori rilevanti.",
"Password, chiavi private, PSK, token e configurazioni complete non vengono registrati. Il registro viene cancellato automaticamente alla fine del periodo di conservazione."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Aggiornamenti WGTools",
"paragraphs": [
"WGTools controlla periodicamente le versioni stabili su GitHub ma non installa aggiornamenti senza conferma esplicita."
],
"bullets": [
"Una nuova versione genera un avviso.",
"Prima di aggiornare crea un backup .wgtbackup completo e un archivio separato per il rollback dell'applicazione.",
"Se la nuova versione non parte, prova a ripristinare quella precedente. La versione corrente è mostrata nell'interfaccia e in Informazioni."
],
"example_title": "",
"example_lines": [],
"warning": ""
},
{
"title": "Comando wgtools e accesso di emergenza",
"paragraphs": [
"Il comando root wgtools è utile quando il pannello web non è raggiungibile."
],
"bullets": [
"Mostra stato di WGTools, WireGuard, Nodes, Telegram, timer e Relay Agent locale e URL del pannello.",
"Può avviare, fermare e riavviare pannello e WireGuard e leggere i log. Con porta HTTPS o percorso privato errati permette di disabilitare HTTPS integrato e tornare a HTTP.",
"Consente a root di disabilitare MFA in emergenza se l'utente ha perso l'autenticatore e i codici.",
"Disinstallare WGTools rimuove pannello e servizi mantenendo WireGuard normale e dati riutilizzabili. FULL CLEANUP, dopo conferma DELETE ALL, cancella WGTools, Relay locale e WireGuard da questo host, senza toccare agenti Relay su altri VPS."
],
"example_title": "Esempio",
"example_lines": [
"root@server:~# wgtools"
],
"warning": ""
},
{
"title": "Dove sono archiviati i dati",
"paragraphs": [
"Normalmente non occorre modificare i file a mano, ma i percorsi sono utili per diagnostica e pianificazione dei backup."
],
"bullets": [],
"example_title": "Percorsi principali",
"example_lines": [
"/etc/wireguard/wg0.conf — configurazione WireGuard",
"/var/lib/wgtools/wgtools.db — utenti e impostazioni",
"/var/lib/wgtools/clients/ — dati dei client gestiti",
"/var/lib/wgtools/backups/ — cronologia configurazioni",
"/var/lib/wgtools/update-backups/ — archivi rollback aggiornamento"
],
"warning": ""
}
]
}
]
+3 -2
View File
@@ -191,8 +191,9 @@ def update_telegram_settings(
dns = _normalize_dns(default_dns)
endpoint = _normalize_endpoint(default_endpoint)
language = str(language or "auto").strip().lower()
if language not in {"auto", "en", "ru"}:
raise ValueError("Bot language must be auto, en or ru")
if language not in {"auto", "en", "ru", "pl"}:
raise ValueError("Nieprawidłowy język bota")
language = "pl"
if enabled and not token:
raise ValueError("Configure a BotFather token before enabling the Telegram bot")