From 94f8c7249fdf80c9abc722bdcd0784d6d9985319 Mon Sep 17 00:00:00 2001 From: Alexey Martemyanov Date: Mon, 1 Jun 2026 13:23:20 +0600 Subject: [PATCH] [2026-06-01] syncthing: add port 22000 forwarding docs --- family/how-to/syncthing-truenas-android.md | 17 +++++++++++++++++ work/briefs/inbox/2026-06-01.md | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/family/how-to/syncthing-truenas-android.md b/family/how-to/syncthing-truenas-android.md index 8f1e26e3..3d29f59f 100644 --- a/family/how-to/syncthing-truenas-android.md +++ b/family/how-to/syncthing-truenas-android.md @@ -33,6 +33,23 @@ TrueNAS (syncthing контейнер) - **Авторизация:** встроенная GUI Authentication Syncthing (не Caddy basic_auth) - **Локально на TrueNAS:** `http://localhost:8384` +## ⚠️ Проброс порта 22000 (открытие доступа из интернета) + +Для прямого P2P-соединения Syncthing использует порт 22000 (TCP+UDP). Без него телефон на мобильном интернете не может соединиться с сервером — соединение идёт по WAN, а не через Caddy. + +Проброс настраивается на OpenWrt (роутер): +- **Forward WAN → 192.168.2.197:22000** (TCP+UDP) +- Если доступа к OpenWrt нет — через iptables на TrueNAS: + ```bash + sudo /sbin/iptables -t nat -A PREROUTING -i enp3s0 -p tcp --dport 22000 -j DNAT --to-destination 192.168.2.197:22000 + sudo /sbin/iptables -t nat -A PREROUTING -i enp3s0 -p udp --dport 22000 -j DNAT --to-destination 192.168.2.197:22000 + sudo /sbin/iptables -A FORWARD -p tcp --dport 22000 -j ACCEPT + sudo /sbin/iptables -A FORWARD -p udp --dport 22000 -j ACCEPT + ``` + +После проброса на телефоне в настройках устройства Syncthing: +- Поле **Addresses**: `quic://syncthing.mallexxx.duckdns.org:22000` (без tcp://, только QUIC — UDP-порт открыт, TCP может быть закрыт) + ## Контейнер **Compose:** `/mnt/RED_2TB/docker/syncthing/docker-compose.yml` diff --git a/work/briefs/inbox/2026-06-01.md b/work/briefs/inbox/2026-06-01.md index 1cfb5b61..af36f08c 100644 --- a/work/briefs/inbox/2026-06-01.md +++ b/work/briefs/inbox/2026-06-01.md @@ -1,6 +1,6 @@ -## Inbox Triage — 2026-06-01 (since 2026-06-01 12:01) +## Inbox Triage — 2026-06-01 (since 2026-06-01T12:30:54) ### Nothing new Inbox quiet — nothing new. -_No new @mentions, no new task assignments, no new human comments on your open tasks, and no delegated state changes in the 38 minutes since the previous triage at 12:01. The only post-SINCE Asana activity was on tasks outside your scope (Alessandro/Costas iterating on "Chat Response" styling tasks assigned to Alessandro, Domen completing his own OOO task) and one Dax bot metrics post on Dominik's "macOS browser usage by OS version" AOR. Nothing requires your attention._ +_No new @mentions, no new task assignments, no new human comments on your open tasks, and no delegated-task state changes in the ~30 minutes since SINCE. The only post-SINCE Asana stories were on tasks outside your scope (Lukasz P. OOO confirmation; Alessandro iterating on a "Chat Response: Liquid Glass Button Disabled State Styling" task assigned to him). Nothing requires your attention._