feat:添加wireguard到列表

This commit is contained in:
okxlin 2024-11-20 00:34:12 +08:00
parent 8181135794
commit c235aaeb4f
9 changed files with 306 additions and 0 deletions

View File

@ -0,0 +1,13 @@
ALLOWEDIPS="10.0.8.0/24"
CONFIG_PATH="./config"
CONTAINER_NAME="wireguard"
INTERNAL_SUBNET="10.0.8.0"
LOG_CONFS="true"
PEERDNS="119.29.29.29,1.1.1.1"
PEERS=1
PERSISTENTKEEPALIVE_PEERS=25
PGID=1000
PUID=1000
SERVERPORT=51820
SERVERURL="172.17.0.1"
TIME_ZONE="Asia/Shanghai"

View File

@ -0,0 +1,92 @@
additionalProperties:
formFields:
- default: "1000"
edit: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: true
type: number
- default: "1000"
edit: true
envKey: PGID
labelEn: Group ID
labelZh: 组 ID
required: true
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: "51820"
edit: true
envKey: SERVERPORT
labelEn: Wireguard port
labelZh: Wireguard 端口
required: true
rule: paramPort
type: number
- default: "172.17.0.1"
edit: true
envKey: SERVERURL
labelEn: Host address (must change item)
labelZh: 本机地址 (必改项)
required: true
type: text
- default: "1"
edit: true
envKey: PEERS
labelEn: Number of Peers
labelZh: 客户端数量
required: true
type: number
- default: "119.29.29.29,1.1.1.1"
edit: true
envKey: PEERDNS
labelEn: Peer DNS
labelZh: 客户端 DNS
required: true
type: text
- default: "10.0.8.0"
edit: true
envKey: INTERNAL_SUBNET
labelEn: Default Wireguard Segment Subnet
labelZh: 默认 Wireguard 网段子网
required: true
type: text
- default: "10.0.8.0/24"
edit: true
envKey: ALLOWEDIPS
labelEn: Wireguard Allowed IPs
labelZh: Wireguard 允许的 IP 段
required: true
type: text
- default: "25"
edit: true
envKey: PERSISTENTKEEPALIVE_PEERS
labelEn: Wireguard Persistent Keepalive
labelZh: Wireguard 保活间隔
required: true
type: number
- default: "true"
edit: true
envKey: LOG_CONFS
labelEn: Log Configurations
labelZh: 日志配置
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: "./config"
disabled: true
envKey: CONFIG_PATH
labelEn: Config Path
labelZh: 配置路径
required: true
type: text

View File

@ -0,0 +1,35 @@
services:
wireguard:
image: "linuxserver/wireguard:1.0.20210914"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${SERVERPORT}:${SERVERPORT}/udp"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIME_ZONE}
- SERVERURL=${SERVERURL}
- SERVERPORT=${SERVERPORT}
- PEERS=${PEERS}
- PEERDNS=${PEERDNS}
- INTERNAL_SUBNET=${INTERNAL_SUBNET}
- ALLOWEDIPS=${ALLOWEDIPS}
- PERSISTENTKEEPALIVE_PEERS=${PERSISTENTKEEPALIVE_PEERS}
- LOG_CONFS=${LOG_CONFS}
volumes:
- ${CONFIG_PATH}:/config
- /lib/modules:/lib/modules
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
net.ipv4.conf.all.src_valid_mark: "1"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

5
apps/wireguard/README.md Normal file
View File

@ -0,0 +1,5 @@
# WireGuard
[WireGuard®](https://www.wireguard.com/) 是一种极其简单、高速且现代化的 VPN采用了最先进的加密技术。它旨在比 IPsec 更快、更简单、更轻量,同时避免复杂的配置问题,并在性能上远超 OpenVPN。WireGuard 被设计为通用 VPN可在嵌入式设备和超级计算机上运行适用于多种场景。
最初发布于 Linux 内核如今已支持多平台Windows、macOS、BSD、iOS、Android并广泛部署。尽管仍在积极开发中WireGuard 已被认为是行业内最安全、最易用、最简单的 VPN 解决方案之一。

21
apps/wireguard/data.yml Normal file
View File

@ -0,0 +1,21 @@
name: WireGuard
tags:
- 实用工具
- 安全
title: 一种极其简单但快速且现代的 VPN
description: 一种极其简单但快速且现代的 VPN
additionalProperties:
key: wireguard
name: WireGuard
tags:
- Tool
- Security
shortDescZh: 一种极其简单但快速且现代的 VPN
shortDescEn: An extremely simple yet fast and modern VPN
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://www.wireguard.com
github: https://github.com/wireguard
document: https://www.wireguard.com

View File

@ -0,0 +1,13 @@
ALLOWEDIPS="10.0.8.0/24"
CONFIG_PATH="./config"
CONTAINER_NAME="wireguard"
INTERNAL_SUBNET="10.0.8.0"
LOG_CONFS="true"
PEERDNS="119.29.29.29,1.1.1.1"
PEERS=1
PERSISTENTKEEPALIVE_PEERS=25
PGID=1000
PUID=1000
SERVERPORT=51820
SERVERURL="172.17.0.1"
TIME_ZONE="Asia/Shanghai"

View File

@ -0,0 +1,92 @@
additionalProperties:
formFields:
- default: "1000"
edit: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: true
type: number
- default: "1000"
edit: true
envKey: PGID
labelEn: Group ID
labelZh: 组 ID
required: true
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: "51820"
edit: true
envKey: SERVERPORT
labelEn: Wireguard port
labelZh: Wireguard 端口
required: true
rule: paramPort
type: number
- default: "172.17.0.1"
edit: true
envKey: SERVERURL
labelEn: Host address (must change item)
labelZh: 本机地址 (必改项)
required: true
type: text
- default: "1"
edit: true
envKey: PEERS
labelEn: Number of Peers
labelZh: 客户端数量
required: true
type: number
- default: "119.29.29.29,1.1.1.1"
edit: true
envKey: PEERDNS
labelEn: Peer DNS
labelZh: 客户端 DNS
required: true
type: text
- default: "10.0.8.0"
edit: true
envKey: INTERNAL_SUBNET
labelEn: Default Wireguard Segment Subnet
labelZh: 默认 Wireguard 网段子网
required: true
type: text
- default: "10.0.8.0/24"
edit: true
envKey: ALLOWEDIPS
labelEn: Wireguard Allowed IPs
labelZh: Wireguard 允许的 IP 段
required: true
type: text
- default: "25"
edit: true
envKey: PERSISTENTKEEPALIVE_PEERS
labelEn: Wireguard Persistent Keepalive
labelZh: Wireguard 保活间隔
required: true
type: number
- default: "true"
edit: true
envKey: LOG_CONFS
labelEn: Log Configurations
labelZh: 日志配置
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: "./config"
disabled: true
envKey: CONFIG_PATH
labelEn: Config Path
labelZh: 配置路径
required: true
type: text

View File

@ -0,0 +1,35 @@
services:
wireguard:
image: "linuxserver/wireguard:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${SERVERPORT}:${SERVERPORT}/udp"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIME_ZONE}
- SERVERURL=${SERVERURL}
- SERVERPORT=${SERVERPORT}
- PEERS=${PEERS}
- PEERDNS=${PEERDNS}
- INTERNAL_SUBNET=${INTERNAL_SUBNET}
- ALLOWEDIPS=${ALLOWEDIPS}
- PERSISTENTKEEPALIVE_PEERS=${PERSISTENTKEEPALIVE_PEERS}
- LOG_CONFS=${LOG_CONFS}
volumes:
- ${CONFIG_PATH}:/config
- /lib/modules:/lib/modules
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
net.ipv4.conf.all.src_valid_mark: "1"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/wireguard/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB