Update README.md

This commit is contained in:
kzolotarev95 authored and GitHub committed 2026-07-03 01:16:53 +04:00
1 parent 445631973d
commit 6e0139f434
1 file changed
+314 -101
+314 -101
View File
@@ -31,17 +31,21 @@
<div align="center"> <div align="center">
## Что это такое <h2>🚀 Что это такое</h2>
**OpenWrt Remote Hub** — это связка из VPS-панели и OpenWrt-агента, которая даёт удобный удалённый доступ к роутерам без проброса LuCI и SSH наружу. <b>OpenWrt Remote Hub</b> — это связка из VPS-панели и OpenWrt-агента, которая даёт удобный удалённый доступ к роутерам без проброса LuCI и SSH наружу.
<br><br>
Роутер сам подключается к VPS изнутри сети, а ты заходишь в Hub-панель и открываешь нужный роутер, LuCI или SSH Web Terminal. Роутер сам подключается к VPS изнутри сети, а ты заходишь в Hub-панель и открываешь нужный роутер, LuCI или SSH Web Terminal.
<br><br>
<table> <table>
<tr> <tr>
<td width="50%" align="center"> <td width="50%" align="center">
### Для чего <h3>🎯 Для чего</h3>
удалённо открыть LuCI удалённо открыть LuCI
зайти в SSH через браузер зайти в SSH через браузер
@@ -52,7 +56,7 @@
</td> </td>
<td width="50%" align="center"> <td width="50%" align="center">
### Из чего состоит <h3>🧩 Из чего состоит</h3>
VPS Hub-панель VPS Hub-панель
OpenWrt агент OpenWrt агент
@@ -71,20 +75,20 @@ web terminal
<div align="center"> <div align="center">
## Tech Stack <h2>🧰 Tech Stack</h2>
### Router / Network / OpenWrt <h3>📡 Router / Network / OpenWrt</h3>
<p align="center"> <p>
<img alt="OpenWrt" src="https://img.shields.io/badge/OpenWrt-00A3E0?style=for-the-badge&logo=openwrt&logoColor=white"> <img alt="OpenWrt" src="https://img.shields.io/badge/OpenWrt-00A3E0?style=for-the-badge&logo=openwrt&logoColor=white">
<img alt="LuCI" src="https://img.shields.io/badge/LuCI-44CC11?style=for-the-badge&logo=lua&logoColor=white"> <img alt="LuCI" src="https://img.shields.io/badge/LuCI-44CC11?style=for-the-badge&logo=lua&logoColor=white">
<img alt="Dropbear" src="https://img.shields.io/badge/Dropbear-SSH-64748B?style=for-the-badge"> <img alt="Dropbear" src="https://img.shields.io/badge/Dropbear-SSH-64748B?style=for-the-badge">
<img alt="CGI" src="https://img.shields.io/badge/CGI-Web%20Panel-A855F7?style=for-the-badge"> <img alt="CGI" src="https://img.shields.io/badge/CGI-Web%20Panel-A855F7?style=for-the-badge">
</p> </p>
### VPS / Reverse / HTTPS <h3>🖥️ VPS / Reverse / HTTPS</h3>
<p align="center"> <p>
<img alt="Linux" src="https://img.shields.io/badge/Linux-VPS-FCC624?style=for-the-badge&logo=linux&logoColor=111111"> <img alt="Linux" src="https://img.shields.io/badge/Linux-VPS-FCC624?style=for-the-badge&logo=linux&logoColor=111111">
<img alt="Python" src="https://img.shields.io/badge/Python-Hub-3776AB?style=for-the-badge&logo=python&logoColor=white"> <img alt="Python" src="https://img.shields.io/badge/Python-Hub-3776AB?style=for-the-badge&logo=python&logoColor=white">
<img alt="Shell" src="https://img.shields.io/badge/Shell-Installer-4EAA25?style=for-the-badge&logo=gnu-bash&logoColor=white"> <img alt="Shell" src="https://img.shields.io/badge/Shell-Installer-4EAA25?style=for-the-badge&logo=gnu-bash&logoColor=white">
@@ -96,18 +100,20 @@ web terminal
--- ---
<h2 align="center"> Быстрый старт</h2> <div align="center">
> После установки в конце появится вход: <h2>⚡ Быстрый старт</h2>
>
> ```text
> login: admin
> password: admin
> ```
>
> Пароль лучше поменять сразу после первого входа.
### VPS: поставить Hub, Xray, firewall и HTTPS одной командой После установки в конце появится вход:
```text
login: admin
password: admin
```
Пароль лучше поменять сразу после первого входа.
<h3>1️⃣ VPS: поставить Hub, Xray, firewall и HTTPS одной командой</h3>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo sh curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo sh
@@ -125,9 +131,9 @@ IP/домен VPS:
hub.example.com hub.example.com
``` ```
Или просто нажать **Enter**, чтобы взять найденный IP сервера. Или просто нажать <b>Enter</b>, чтобы взять найденный IP сервера.
### OpenWrt: поставить Remote Hub на роутер <h3>2️⃣ OpenWrt: поставить Remote Hub на роутер</h3>
```sh ```sh
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/install.sh?v=$(date +%s)" | sh wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/install.sh?v=$(date +%s)" | sh
@@ -140,9 +146,15 @@ owrt-remote doctor
owrt-remote status owrt-remote status
``` ```
</div>
--- ---
<h2 align="center"> Схема работы</h2> <div align="center">
<h2>🛰️ Схема работы</h2>
</div>
```mermaid ```mermaid
flowchart LR flowchart LR
@@ -154,14 +166,18 @@ flowchart LR
R --> S[SSH / Dropbear] R --> S[SSH / Dropbear]
``` ```
**Главная идея:** роутер сам подключается к VPS изнутри сети. Наружу LuCI и SSH на роутере открывать не нужно. <div align="center">
<b>Главная идея:</b> роутер сам подключается к VPS изнутри сети. Наружу LuCI и SSH на роутере открывать не нужно.
</div>
--- ---
<h2 align="center"> Скриншоты интерфейса</h2>
<div align="center"> <div align="center">
<h2>🖼️ Скриншоты интерфейса</h2>
<table> <table>
<tr> <tr>
<td align="center"> <td align="center">
@@ -228,10 +244,10 @@ flowchart LR
--- ---
<h2 align="center"> Видео-демо</h2>
<div align="center"> <div align="center">
<h2>🎬 Видео-демо</h2>
<b>Видео-демо</b> <b>Видео-демо</b>
<br> <br>
<sub>Открытие Hub с телефона: статус роутера, LuCI и SSH Web Terminal.</sub> <sub>Открытие Hub с телефона: статус роутера, LuCI и SSH Web Terminal.</sub>
@@ -244,34 +260,78 @@ flowchart LR
--- ---
| Возможность | Описание | <div align="center">
|:---:|:---:|
| **Router Cards** | Карточки роутеров в Hub-панели | <h2>🎛️ Возможности</h2>
| **Online / Offline** | Быстрая проверка состояния роутеров |
| **LuCI через VPS** | Доступ к LuCI без прямого проброса портов | <table>
| **SSH Web Terminal** | SSH в браузере, удобно даже с телефона | <tr>
| **Xray Reverse** | Роутер подключается к VPS сам | <th align="center">Возможность</th>
| **HTTPS через nginx** | TLS-точка входа на `443/tcp` | <th align="center">Описание</th>
| **Firewall automation** | Скрипты помогают открыть нужные порты | </tr>
| **Doctor / Status** | Команды диагностики на OpenWrt | <tr>
<td align="center">🧭 <b>Router Cards</b></td>
<td align="center">Карточки роутеров в Hub-панели</td>
</tr>
<tr>
<td align="center">🟢 <b>Online / Offline</b></td>
<td align="center">Быстрая проверка состояния роутеров</td>
</tr>
<tr>
<td align="center">🌐 <b>LuCI через VPS</b></td>
<td align="center">Доступ к LuCI без прямого проброса портов</td>
</tr>
<tr>
<td align="center">💻 <b>SSH Web Terminal</b></td>
<td align="center">SSH в браузере, удобно даже с телефона</td>
</tr>
<tr>
<td align="center">🔁 <b>Xray Reverse</b></td>
<td align="center">Роутер подключается к VPS сам</td>
</tr>
<tr>
<td align="center">🔐 <b>HTTPS через nginx</b></td>
<td align="center">TLS-точка входа на <code>443/tcp</code></td>
</tr>
<tr>
<td align="center">🧯 <b>Firewall automation</b></td>
<td align="center">Скрипты помогают открыть нужные порты</td>
</tr>
<tr>
<td align="center">🩺 <b>Doctor / Status</b></td>
<td align="center">Команды диагностики на OpenWrt</td>
</tr>
</table>
</div> </div>
--- ---
<h2 align="center"> Подробная установка</h2> <div align="center">
<h2>📦 Подробная установка</h2>
</div>
<details> <details>
<summary><b> Установка VPS подробно</b></summary> <summary align="center"><b>🖥️ Установка VPS подробно</b></summary>
<div align="center">
Если хочешь поставить повторно, но не сбрасывать текущий пароль: Если хочешь поставить повторно, но не сбрасывать текущий пароль:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo env RESET_LOGIN=0 sh curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo env RESET_LOGIN=0 sh
``` ```
<div align="center">
Если HTTPS не включился автоматически, HTTP-панель всё равно остаётся рабочей. После проверки firewall можно запустить: Если HTTPS не включился автоматически, HTTP-панель всё равно остаётся рабочей. После проверки firewall можно запустить:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
``` ```
@@ -279,20 +339,32 @@ curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/
</details> </details>
<details> <details>
<summary><b> HTTPS / SSL</b></summary> <summary align="center"><b>🔐 HTTPS / SSL</b></summary>
<div align="center">
Установщик пытается включить HTTPS сам. Установщик пытается включить HTTPS сам.
<br><br>
Схема такая: Схема такая:
</div>
```text ```text
Internet -> 443/nginx -> Hub -> Xray reverse -> OpenWrt Internet -> 443/nginx -> Hub -> Xray reverse -> OpenWrt
``` ```
Hub работает внутри на `80` и `8088`, а HTTPS на `443` принимает nginx и прокидывает запросы в Hub. <div align="center">
Hub работает внутри на <code>80</code> и <code>8088</code>, а HTTPS на <code>443</code> принимает nginx и прокидывает запросы в Hub.
<br><br>
Для установки должны быть открыты порты: Для установки должны быть открыты порты:
</div>
```text ```text
80/tcp - HTTP-панель и проверка Let's Encrypt 80/tcp - HTTP-панель и проверка Let's Encrypt
443/tcp - HTTPS-панель через nginx 443/tcp - HTTPS-панель через nginx
@@ -300,20 +372,32 @@ Hub работает внутри на `80` и `8088`, а HTTPS на `443` пр
8443/tcp - Xray / reverse endpoint 8443/tcp - Xray / reverse endpoint
``` ```
<div align="center">
Включить HTTPS вручную на IP: Включить HTTPS вручную на IP:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
``` ```
<div align="center">
Включить HTTPS вручную на домен: Включить HTTPS вручную на домен:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo EMAIL="you@example.com" sh -s -- hub.example.com curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/enable-https.sh?v=$(date +%s)" | sudo EMAIL="you@example.com" sh -s -- hub.example.com
``` ```
<div align="center">
Проверка на VPS: Проверка на VPS:
</div>
```sh ```sh
sudo ss -lntp | grep -E ':(80|443|8088)\b' sudo ss -lntp | grep -E ':(80|443|8088)\b'
curl -sS http://127.0.0.1:8088/health curl -sS http://127.0.0.1:8088/health
@@ -321,36 +405,56 @@ curl -k https://127.0.0.1/health
sudo nginx -t sudo nginx -t
``` ```
<div align="center">
Нормальная картина: Нормальная картина:
- `443` слушает `nginx`; <br><br>
- `80` и `8088` слушает `python3` Hub;
- certbot ставит auto-renew; <code>443</code> слушает <code>nginx</code><br>
- скрипт добавляет hook для перезагрузки nginx после обновления сертификата. <code>80</code> и <code>8088</code> слушает <code>python3</code> Hub<br>
certbot ставит auto-renew<br>
скрипт добавляет hook для перезагрузки nginx после обновления сертификата
</div>
</details> </details>
<details> <details>
<summary><b> Уведомления и мини-лог VPS</b></summary> <summary align="center"><b>🔔 Уведомления и мини-лог VPS</b></summary>
В панели Hub открой кнопку с логином, блок `Уведомления`, и нажми `Включить`. <div align="center">
В панели Hub открой кнопку с логином, блок <code>Уведомления</code>, и нажми <code>Включить</code>.
<br><br>
Что пишет Hub: Что пишет Hub:
- вход в панель: устройство, браузер и IP; <br><br>
- запуск Hub;
- запуск VPS после перезагрузки; вход в панель: устройство, браузер и IP<br>
- короткую причину прошлого выключения/ребута по журналу VPS. запуск Hub<br>
запуск VPS после перезагрузки<br>
короткую причину прошлого выключения/ребута по журналу VPS
<br><br>
Важно: если VPS полностью выключился или пропал интернет, сам VPS не сможет отправить уведомление в момент падения. Событие появится после следующего запуска, когда Hub снова поднимется. Важно: если VPS полностью выключился или пропал интернет, сам VPS не сможет отправить уведомление в момент падения. Событие появится после следующего запуска, когда Hub снова поднимется.
</div>
</details> </details>
<details> <details>
<summary><b> Проверка после установки</b></summary> <summary align="center"><b>✅ Проверка после установки</b></summary>
<div align="center">
На VPS: На VPS:
</div>
```sh ```sh
sudo systemctl status owrt-remote --no-pager -l sudo systemctl status owrt-remote --no-pager -l
sudo systemctl status owrt-remote-xray --no-pager -l sudo systemctl status owrt-remote-xray --no-pager -l
@@ -359,16 +463,24 @@ curl -sS http://127.0.0.1:8088/health
curl -k https://127.0.0.1/health curl -k https://127.0.0.1/health
``` ```
<div align="center">
Должно быть: Должно быть:
- `owrt-remote` active/running; <br><br>
- `owrt-remote-xray` active/running;
- `*:80`, `*:443`, `*:8088`, `*:8443`; <code>owrt-remote</code> active/running<br>
- `127.0.0.1:18080` для LuCI первого роутера; <code>owrt-remote-xray</code> active/running<br>
- `127.0.0.1:19080` для SSH первого роутера. <code>*:80</code>, <code>*:443</code>, <code>*:8088</code>, <code>*:8443</code><br>
<code>127.0.0.1:18080</code> для LuCI первого роутера<br>
<code>127.0.0.1:19080</code> для SSH первого роутера
<br><br>
На OpenWrt: На OpenWrt:
</div>
```sh ```sh
owrt-remote doctor owrt-remote doctor
owrt-remote status owrt-remote status
@@ -379,13 +491,21 @@ owrt-remote heartbeat
--- ---
<h2 align="center"> Частые проблемы</h2> <div align="center">
<h2>🧯 Частые проблемы</h2>
</div>
<details> <details>
<summary><b> Панель VPS не открывается</b></summary> <summary align="center"><b>❌ Панель VPS не открывается</b></summary>
<div align="center">
Проверь сервисы и порты: Проверь сервисы и порты:
</div>
```sh ```sh
sudo systemctl status owrt-remote --no-pager -l sudo systemctl status owrt-remote --no-pager -l
sudo journalctl -u owrt-remote -n 100 --no-pager sudo journalctl -u owrt-remote -n 100 --no-pager
@@ -393,10 +513,16 @@ sudo ss -lntp | grep -E ':(80|443|8088)\b'
curl -sS http://127.0.0.1:8088/health curl -sS http://127.0.0.1:8088/health
``` ```
Если на VPS `curl` отвечает `{"ok":true}`, но снаружи сайт не открывается, проблема почти всегда в firewall VPS-провайдера. <div align="center">
Если на VPS <code>curl</code> отвечает <code>{"ok":true}</code>, но снаружи сайт не открывается, проблема почти всегда в firewall VPS-провайдера.
<br><br>
Открой в личном кабинете VPS: Открой в личном кабинете VPS:
</div>
```text ```text
80/tcp 80/tcp
443/tcp 443/tcp
@@ -407,10 +533,14 @@ curl -sS http://127.0.0.1:8088/health
</details> </details>
<details> <details>
<summary><b> Админка пишет <code>proxy error: [Errno 111] Connection refused</code></b></summary> <summary align="center"><b>🔌 Админка пишет <code>proxy error: [Errno 111] Connection refused</code></b></summary>
<div align="center">
Пересобери Xray config: Пересобери Xray config:
</div>
```sh ```sh
sudo /opt/owrt-remote/owrt-remote-hub.py render-xray --out /etc/xray/owrt-remote.json sudo /opt/owrt-remote/owrt-remote-hub.py render-xray --out /etc/xray/owrt-remote.json
sudo systemctl restart owrt-remote-xray sudo systemctl restart owrt-remote-xray
@@ -420,36 +550,54 @@ sudo ss -lntp | grep -E ':(18080|18090|19080|19090)\b'
</details> </details>
<details> <details>
<summary><b> SSH web-terminal просит пароль и молчит</b></summary> <summary align="center"><b>⌨️ SSH web-terminal просит пароль и молчит</b></summary>
<div align="center">
Проверь Dropbear на OpenWrt: Проверь Dropbear на OpenWrt:
</div>
```sh ```sh
/etc/init.d/dropbear status /etc/init.d/dropbear status
owrt-remote heartbeat owrt-remote heartbeat
``` ```
<div align="center">
В телефоне используй поле снизу терминала: В телефоне используй поле снизу терминала:
- **Вставить** — вставить текст; <br><br>
- **Enter** — отправить Enter;
- **Отправить** — отправить команду или пароль. <b>Вставить</b> — вставить текст<br>
<b>Enter</b> — отправить Enter<br>
<b>Отправить</b> — отправить команду или пароль
</div>
</details> </details>
<details> <details>
<summary><b> С мобильного интернета не открывается</b></summary> <summary align="center"><b>📱 С мобильного интернета не открывается</b></summary>
<div align="center">
Пробуй: Пробуй:
</div>
```text ```text
https://YOUR_VPS_IP/ https://YOUR_VPS_IP/
http://YOUR_VPS_IP/ http://YOUR_VPS_IP/
http://YOUR_VPS_IP:8088/ http://YOUR_VPS_IP:8088/
``` ```
<div align="center">
Если по Wi-Fi работает, а через мобильный интернет нет, открой порты в firewall VPS-провайдера и проверь: Если по Wi-Fi работает, а через мобильный интернет нет, открой порты в firewall VPS-провайдера и проверь:
</div>
```sh ```sh
sudo ss -lntp | grep -E ':(80|443|8088)' sudo ss -lntp | grep -E ':(80|443|8088)'
``` ```
@@ -458,33 +606,49 @@ sudo ss -lntp | grep -E ':(80|443|8088)'
--- ---
<h2 align="center"> Удаление</h2> <div align="center">
<h2>🗑️ Удаление</h2>
</div>
<details> <details>
<summary><b> Удалить Hub с VPS полностью</b></summary> <summary align="center"><b>🖥️ Удалить Hub с VPS полностью</b></summary>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo sh curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo sh
``` ```
<div align="center">
Удалится: Удалится:
- `owrt-remote`; <br><br>
- `owrt-remote-xray`;
- `/opt/owrt-remote`; <code>owrt-remote</code><br>
- `/etc/xray/owrt-remote.json`; <code>owrt-remote-xray</code><br>
- `/var/lib/owrt-remote`; <code>/opt/owrt-remote</code><br>
- nginx-конфиг HTTPS, certbot renewal hook и старые TLS override-файлы; <code>/etc/xray/owrt-remote.json</code><br>
- правила `ufw` для `80/tcp`, `443/tcp`, `8088/tcp`, `8443/tcp`. <code>/var/lib/owrt-remote</code><br>
nginx-конфиг HTTPS, certbot renewal hook и старые TLS override-файлы<br>
правила <code>ufw</code> для <code>80/tcp</code>, <code>443/tcp</code>, <code>8088/tcp</code>, <code>8443/tcp</code>
<br><br>
Удалить Hub, но оставить базу роутеров: Удалить Hub, но оставить базу роутеров:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env PURGE=0 sh curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env PURGE=0 sh
``` ```
<div align="center">
Удалить дополнительно сам Xray binary: Удалить дополнительно сам Xray binary:
</div>
```sh ```sh
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env REMOVE_XRAY=1 sh curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env REMOVE_XRAY=1 sh
``` ```
@@ -492,25 +656,33 @@ curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/
</details> </details>
<details> <details>
<summary><b> Удалить агент с OpenWrt полностью</b></summary> <summary align="center"><b>📡 Удалить агент с OpenWrt полностью</b></summary>
```sh ```sh
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | PURGE=1 sh wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | PURGE=1 sh
``` ```
<div align="center">
Удалится: Удалится:
- `/usr/sbin/owrt-remote`; <br><br>
- `/etc/init.d/owrt-remote`;
- `/www/cgi-bin/owrt-remote`; <code>/usr/sbin/owrt-remote</code><br>
- пункт меню LuCI; <code>/etc/init.d/owrt-remote</code><br>
- rpcd ACL; <code>/www/cgi-bin/owrt-remote</code><br>
- `/etc/config/owrtremote`; пункт меню LuCI<br>
- `/etc/owrt-remote/web.key`; rpcd ACL<br>
- `/etc/xray/owrt-remote-client.json`. <code>/etc/config/owrtremote</code><br>
<code>/etc/owrt-remote/web.key</code><br>
<code>/etc/xray/owrt-remote-client.json</code>
<br><br>
Удалить только файлы панели, но оставить конфиг: Удалить только файлы панели, но оставить конфиг:
</div>
```sh ```sh
wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | sh wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" | sh
``` ```
@@ -519,10 +691,14 @@ wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/m
--- ---
<h2 align="center"> Дерево проекта</h2> <div align="center">
<h2>🌳 Дерево проекта</h2>
</div>
<details> <details>
<summary><b>Открыть дерево файлов</b></summary> <summary align="center"><b>Открыть дерево файлов</b></summary>
```text ```text
. .
@@ -558,33 +734,68 @@ wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/m
--- ---
<h2 align="center"> Мини-шпаргалка команд</h2>
<div align="center"> <div align="center">
| Где | Команда | Что делает | <h2>🧾 Мини-шпаргалка команд</h2>
|:---:|:---:|:---:|
| VPS | `systemctl status owrt-remote` | статус Hub | <table>
| VPS | `systemctl status owrt-remote-xray` | статус Xray reverse | <tr>
| VPS | `curl -sS http://127.0.0.1:8088/health` | healthcheck Hub | <th align="center">Где</th>
| VPS | `sudo nginx -t` | проверка nginx-конфига | <th align="center">Команда</th>
| OpenWrt | `owrt-remote doctor` | диагностика агента | <th align="center">Что делает</th>
| OpenWrt | `owrt-remote status` | текущий статус | </tr>
| OpenWrt | `owrt-remote heartbeat` | отправить heartbeat | <tr>
<td align="center">VPS</td>
<td align="center"><code>systemctl status owrt-remote</code></td>
<td align="center">статус Hub</td>
</tr>
<tr>
<td align="center">VPS</td>
<td align="center"><code>systemctl status owrt-remote-xray</code></td>
<td align="center">статус Xray reverse</td>
</tr>
<tr>
<td align="center">VPS</td>
<td align="center"><code>curl -sS http://127.0.0.1:8088/health</code></td>
<td align="center">healthcheck Hub</td>
</tr>
<tr>
<td align="center">VPS</td>
<td align="center"><code>sudo nginx -t</code></td>
<td align="center">проверка nginx-конфига</td>
</tr>
<tr>
<td align="center">OpenWrt</td>
<td align="center"><code>owrt-remote doctor</code></td>
<td align="center">диагностика агента</td>
</tr>
<tr>
<td align="center">OpenWrt</td>
<td align="center"><code>owrt-remote status</code></td>
<td align="center">текущий статус</td>
</tr>
<tr>
<td align="center">OpenWrt</td>
<td align="center"><code>owrt-remote heartbeat</code></td>
<td align="center">отправить heartbeat</td>
</tr>
</table>
</div> </div>
--- ---
<h2 align="center"> Лицензия</h2>
<div align="center"> <div align="center">
Этот проект распространяется под лицензией **MIT**. <h2> Лицензия</h2>
Этот проект распространяется под лицензией <b>MIT</b>.
<br><br>
Можно использовать, копировать, изменять, публиковать и распространять проект при сохранении текста лицензии. Можно использовать, копировать, изменять, публиковать и распространять проект при сохранении текста лицензии.
<br> <br><br>
<a href="LICENSE"> <a href="LICENSE">
<img alt="MIT License" src="https://img.shields.io/badge/License-MIT-22C55E?style=for-the-badge&labelColor=111827"> <img alt="MIT License" src="https://img.shields.io/badge/License-MIT-22C55E?style=for-the-badge&labelColor=111827">
@@ -602,6 +813,8 @@ wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/m
<b>OpenWrt Remote Hub</b> — свой VPS, свой доступ, свои роутеры под контролем. <b>OpenWrt Remote Hub</b> — свой VPS, свой доступ, свои роутеры под контролем.
<br><br>
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:F97316,45:7C3AED,100:00A3E0&height=120&section=footer" alt="Footer" width="100%" /> <img src="https://capsule-render.vercel.app/api?type=waving&color=0:F97316,45:7C3AED,100:00A3E0&height=120&section=footer" alt="Footer" width="100%" />
</div> </div>