diff --git a/apps/wireguard/1.0.20210914/.env.sample b/apps/wireguard/1.0.20210914/.env.sample new file mode 100644 index 00000000..6a14a674 --- /dev/null +++ b/apps/wireguard/1.0.20210914/.env.sample @@ -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" diff --git a/apps/wireguard/1.0.20210914/data.yml b/apps/wireguard/1.0.20210914/data.yml new file mode 100644 index 00000000..80b3f83f --- /dev/null +++ b/apps/wireguard/1.0.20210914/data.yml @@ -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 diff --git a/apps/wireguard/1.0.20210914/docker-compose.yml b/apps/wireguard/1.0.20210914/docker-compose.yml new file mode 100644 index 00000000..20f5ea3e --- /dev/null +++ b/apps/wireguard/1.0.20210914/docker-compose.yml @@ -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 diff --git a/apps/wireguard/README.md b/apps/wireguard/README.md new file mode 100644 index 00000000..14e84c17 --- /dev/null +++ b/apps/wireguard/README.md @@ -0,0 +1,5 @@ +# WireGuard + +[WireGuard®](https://www.wireguard.com/) 是一种极其简单、高速且现代化的 VPN,采用了最先进的加密技术。它旨在比 IPsec 更快、更简单、更轻量,同时避免复杂的配置问题,并在性能上远超 OpenVPN。WireGuard 被设计为通用 VPN,可在嵌入式设备和超级计算机上运行,适用于多种场景。 + +最初发布于 Linux 内核,如今已支持多平台(Windows、macOS、BSD、iOS、Android),并广泛部署。尽管仍在积极开发中,WireGuard 已被认为是行业内最安全、最易用、最简单的 VPN 解决方案之一。 \ No newline at end of file diff --git a/apps/wireguard/data.yml b/apps/wireguard/data.yml new file mode 100644 index 00000000..ee4b1e64 --- /dev/null +++ b/apps/wireguard/data.yml @@ -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 \ No newline at end of file diff --git a/apps/wireguard/latest/.env.sample b/apps/wireguard/latest/.env.sample new file mode 100644 index 00000000..6a14a674 --- /dev/null +++ b/apps/wireguard/latest/.env.sample @@ -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" diff --git a/apps/wireguard/latest/data.yml b/apps/wireguard/latest/data.yml new file mode 100644 index 00000000..80b3f83f --- /dev/null +++ b/apps/wireguard/latest/data.yml @@ -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 diff --git a/apps/wireguard/latest/docker-compose.yml b/apps/wireguard/latest/docker-compose.yml new file mode 100644 index 00000000..c78baa73 --- /dev/null +++ b/apps/wireguard/latest/docker-compose.yml @@ -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 diff --git a/apps/wireguard/logo.png b/apps/wireguard/logo.png new file mode 100644 index 00000000..cf4b8c48 Binary files /dev/null and b/apps/wireguard/logo.png differ