mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-30 10:28:39 +08:00
feat: Add app cliproxyapi and tailscale-Derp
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
# Tailscale Derp
|
||||
|
||||
Tailscale DERP 中继服务器,使用完整配置方式,包含tailscale和derper共存的部署方案。
|
||||
|
||||
## 功能特点
|
||||
|
||||
- 完整的tailscale和derper共存配置
|
||||
- 支持客户端验证,防止被滥用
|
||||
- 占用资源少,部署简单
|
||||
- 支持多种架构(amd64、arm64、arm/v7)
|
||||
|
||||
## 使用说明
|
||||
|
||||
### 默认端口
|
||||
|
||||
- TCP: 43443
|
||||
- UDP: 43478
|
||||
|
||||
### 登录指南
|
||||
|
||||
部署完成后,需要获取tailscale登录链接:
|
||||
|
||||
```bash
|
||||
# 查看tailscale容器日志获取登录链接
|
||||
docker logs -f <容器名称>-tailscale
|
||||
```
|
||||
|
||||
在日志中找到类似以下内容的登录链接:
|
||||
```
|
||||
To authenticate, visit:
|
||||
https://login.tailscale.com/a/xxxxxxx
|
||||
```
|
||||
|
||||
复制链接到浏览器打开并登录Tailscale账户。
|
||||
|
||||
### 防火墙配置
|
||||
|
||||
确保服务器防火墙开放以下端口:
|
||||
- TCP 43443
|
||||
- UDP 43478
|
||||
|
||||
### Tailscale ACL 配置
|
||||
|
||||
在 Tailscale 控制面板的 Access controls 中添加以下配置:
|
||||
|
||||
```json
|
||||
{
|
||||
"derpMap": {
|
||||
"OmitDefaultRegions": false,
|
||||
"Regions": {
|
||||
"912": {
|
||||
"RegionID": 912,
|
||||
"RegionCode": "derper_self",
|
||||
"RegionName": "Derper Self",
|
||||
"Nodes": [
|
||||
{
|
||||
"Name": "derper_self",
|
||||
"RegionID": 912,
|
||||
"DERPPort": 43443,
|
||||
"STUNPort": 43478,
|
||||
"IPv4": "YOUR_SERVER_IP",
|
||||
"InsecureForTests": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
保存后,客户端需要重新连接以获取新配置。
|
||||
|
||||
### 验证部署
|
||||
|
||||
使用以下命令验证 DERP 服务器是否正常工作:
|
||||
|
||||
```bash
|
||||
tailscale netcheck
|
||||
```
|
||||
|
||||
## 相关链接
|
||||
|
||||
- 官方网站: https://tailscale.com
|
||||
- GitHub: https://github.com/yangchuansheng/ip_derper
|
||||
- 部署文档: https://seepine.com/ops/tailscale/derper/
|
||||
@@ -0,0 +1,85 @@
|
||||
# Tailscale Derp
|
||||
|
||||
Tailscale DERP relay server with complete configuration, including coexistence of tailscale and derper.
|
||||
|
||||
## Features
|
||||
|
||||
- Complete tailscale and derper coexistence configuration
|
||||
- Supports client verification to prevent abuse
|
||||
- Low resource consumption, simple deployment
|
||||
- Supports multiple architectures (amd64, arm64, arm/v7)
|
||||
|
||||
## Usage
|
||||
|
||||
### Default Ports
|
||||
|
||||
- TCP: 43443
|
||||
- UDP: 43478
|
||||
|
||||
### Login Guide
|
||||
|
||||
After deployment, you need to get the tailscale login link:
|
||||
|
||||
```bash
|
||||
# Check tailscale container logs for login link
|
||||
docker logs -f <container-name>-tailscale
|
||||
```
|
||||
|
||||
Find the login link in the logs similar to:
|
||||
```
|
||||
To authenticate, visit:
|
||||
https://login.tailscale.com/a/xxxxxxx
|
||||
```
|
||||
|
||||
Copy the link to browser and login to your Tailscale account.
|
||||
|
||||
### Firewall Configuration
|
||||
|
||||
Ensure the following ports are open in the server firewall:
|
||||
- TCP 43443
|
||||
- UDP 43478
|
||||
|
||||
### Tailscale ACL Configuration
|
||||
|
||||
Add the following configuration in the Access controls section of the Tailscale control panel:
|
||||
|
||||
```json
|
||||
{
|
||||
"derpMap": {
|
||||
"OmitDefaultRegions": false,
|
||||
"Regions": {
|
||||
"912": {
|
||||
"RegionID": 912,
|
||||
"RegionCode": "derper_self",
|
||||
"RegionName": "Derper Self",
|
||||
"Nodes": [
|
||||
{
|
||||
"Name": "derper_self",
|
||||
"RegionID": 912,
|
||||
"DERPPort": 43443,
|
||||
"STUNPort": 43478,
|
||||
"IPv4": "YOUR_SERVER_IP",
|
||||
"InsecureForTests": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
After saving, clients need to reconnect to get the new configuration.
|
||||
|
||||
### Verify Deployment
|
||||
|
||||
Use the following command to verify the DERP server is working:
|
||||
|
||||
```bash
|
||||
tailscale netcheck
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
- Website: https://tailscale.com
|
||||
- GitHub: https://github.com/yangchuansheng/ip_derper
|
||||
- Documentation: https://seepine.com/ops/tailscale/derper/
|
||||
@@ -0,0 +1,29 @@
|
||||
name: Tailscale Derp
|
||||
tags:
|
||||
- 网络工具
|
||||
- VPN
|
||||
title: Tailscale DERP 中继服务器
|
||||
description: Tailscale DERP 中继服务器,无需域名即可使用
|
||||
additionalProperties:
|
||||
key: tailscale-derp
|
||||
name: Tailscale Derp
|
||||
tags:
|
||||
- Network
|
||||
- VPN
|
||||
shortDescZh: Tailscale DERP 中继服务器,无需域名即可使用
|
||||
shortDescEn: Tailscale DERP relay server, no domain required
|
||||
description:
|
||||
en: Tailscale DERP relay server for private VPN connections without domain requirements
|
||||
zh: Tailscale DERP 中继服务器,用于无需域名的私有 VPN 连接
|
||||
zh-Hant: Tailscale DERP 中繼服務器,用於無需域名的私有 VPN 連線
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 50
|
||||
website: https://tailscale.com
|
||||
github: https://github.com/yangchuansheng/ip_derper
|
||||
document: https://ameow.xyz/archives/tailscale-derp-server-deployment
|
||||
architectures:
|
||||
- amd64
|
||||
- arm64
|
||||
- arm/v7
|
||||
@@ -0,0 +1,52 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 43443
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_TCP
|
||||
labelEn: TCP Port
|
||||
labelZh: TCP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
label:
|
||||
en: TCP Port
|
||||
ja: TCP ポート
|
||||
ms: Port TCP
|
||||
pt-br: Porta TCP
|
||||
ru: TCP порт
|
||||
ko: TCP 포트
|
||||
zh-Hant: TCP 埠
|
||||
zh: TCP 端口
|
||||
- default: 43478
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_UDP
|
||||
labelEn: UDP Port
|
||||
labelZh: UDP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
label:
|
||||
en: UDP Port
|
||||
ja: UDP ポート
|
||||
ms: Port UDP
|
||||
pt-br: Porta UDP
|
||||
ru: UDP порт
|
||||
ko: UDP 포트
|
||||
zh-Hant: UDP 埠
|
||||
zh: UDP 端口
|
||||
- default: true
|
||||
edit: true
|
||||
envKey: DERP_VERIFY_CLIENTS
|
||||
labelEn: Verify Clients
|
||||
labelZh: 验证客户端
|
||||
required: false
|
||||
type: boolean
|
||||
label:
|
||||
en: Verify Clients
|
||||
ja: クライアント認証
|
||||
ms: Verifikasi Pelanggan
|
||||
pt-br: Verificar Clientes
|
||||
ru: Проверка клиентов
|
||||
ko: 클라이언트 확인
|
||||
zh-Hant: 驗證客戶端
|
||||
zh: 验证客户端
|
||||
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
tailscale:
|
||||
image: tailscale/tailscale:latest
|
||||
environment:
|
||||
- TS_HOSTNAME=tailscale-docker
|
||||
- TS_AUTH_ONCE=true
|
||||
- TS_STATE_DIR=/data
|
||||
volumes:
|
||||
- tailscale:/var/run/tailscale
|
||||
- tailscale_data:/data
|
||||
networks:
|
||||
- 1panel-network
|
||||
|
||||
derper:
|
||||
image: ghcr.io/yangchuansheng/ip_derper:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_TCP}:443"
|
||||
- "${PANEL_APP_PORT_UDP}:3478/udp"
|
||||
volumes:
|
||||
- tailscale:/var/run/tailscale
|
||||
environment:
|
||||
- DERP_VERIFY_CLIENTS=${DERP_VERIFY_CLIENTS}
|
||||
depends_on:
|
||||
- tailscale
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
volumes:
|
||||
tailscale:
|
||||
tailscale_data:
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user