From 67fe25b558607083be56d742cf2c24f72b7885d0 Mon Sep 17 00:00:00 2001 From: Cat Tom Date: Sat, 28 Mar 2026 18:37:23 +0800 Subject: [PATCH] Edit Commands.md --- ...ds-for-Server-Operation-and-Maintenance.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/tech/Commands-for-Server-Operation-and-Maintenance.md b/docs/tech/Commands-for-Server-Operation-and-Maintenance.md index 868502b..2465cac 100644 --- a/docs/tech/Commands-for-Server-Operation-and-Maintenance.md +++ b/docs/tech/Commands-for-Server-Operation-and-Maintenance.md @@ -257,11 +257,23 @@ echo 'alias flexget="/root/flexget/bin/flexget -c /root/flexget/config.yml"' >> !!! warning "注意" - 所有经由 Tailscale 的连接都不需要在 UFW 中放行。 + 所有经由 Tailscale 的连接都不需要在 UFW 中放行或加以限制。 所有在 Docker Compose 文件中没有定义特定监听地址的端口都不需要在 UFW 中放行。 -Maria 非标端口开放表: +**HomeLab 非标端口开放表** + +| 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 | +| :----: | :---: | :------------: | :---------: | :---: | :-------: | +| 1 | 3493 | 192.168.1.0/24 | / | / | NUT | +| 1 | 8090 | / | / | / | UpSnap | +| 1 | 8080 | / | / | / | One-KVM | +| 1 | 3002 | 127.0.0.1 | / | / | Homepage | + + +*CatTomServer3-1 无非标端口开放。* + +**Maria 非标端口开放表** | 服务器 | 端口 | 来源IP/IP段 | 目标IP/IP段 | 协议 | 备注 | | :----: | :---: | :---------: | :---------: | :---: | :-----------: | @@ -291,7 +303,8 @@ sudo ufw default deny incoming # 默认禁止所有数据入站 ``` bash # SSH -sudo ufw allow 25800 +sudo ufw allow 25800 # Maria +sudo ufw allow from 192.168.1.0/24 to any port 25800 # HomeLab - lan # Web sudo ufw allow 80 && sudo ufw allow 443