diff --git a/openvpn/README.md b/openvpn/README.md new file mode 100644 index 000000000..2a66a9c79 --- /dev/null +++ b/openvpn/README.md @@ -0,0 +1,10 @@ +# 使用说明 + +## 管理界面 + +- 管理界面地址:`https://IP:控制台端口/admin` +- 默认用户:`openvpn` +- 密码:`可以在 Docker 容器日志中找到(首次初始化运行时生成)` + +> 可以通过查找 pass 关键字获取初始密码 +类似:`Auto-generated pass = "WHjoYsAd9Ha9m". Setting in db...` diff --git a/openvpn/data.yml b/openvpn/data.yml new file mode 100644 index 000000000..2897ce584 --- /dev/null +++ b/openvpn/data.yml @@ -0,0 +1,21 @@ +name: OpenVPN +tags: + - 实用工具 + - 安全 +title: 开源 VPN 守护进程 +description: 开源 VPN 守护进程 +additionalProperties: + key: openvpn + name: OpenVPN + tags: + - Tool + - Security + shortDescZh: 开源 VPN 守护进程 + shortDescEn: Open source VPN daemon + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://openvpn.net/ + github: https://github.com/OpenVPN/openvpn + document: https://openvpn.net/access-server-manual/introduction/ diff --git a/openvpn/latest/data.yml b/openvpn/latest/data.yml new file mode 100644 index 000000000..9a818335f --- /dev/null +++ b/openvpn/latest/data.yml @@ -0,0 +1,26 @@ +additionalProperties: + formFields: + - default: 943 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Console Port + labelZh: 控制台端口 + required: true + rule: paramPort + type: number + - default: 443 + edit: true + envKey: PANEL_APP_PORT_HTTPS + labelEn: HTTPS Port + labelZh: HTTPS 端口 + required: true + rule: paramPort + type: number + - default: 1194 + edit: true + envKey: PANEL_APP_PORT_UDP + labelEn: UDP Port + labelZh: UDP 端口 + required: true + rule: paramPort + type: number diff --git a/openvpn/latest/docker-compose.yml b/openvpn/latest/docker-compose.yml new file mode 100644 index 000000000..81186f666 --- /dev/null +++ b/openvpn/latest/docker-compose.yml @@ -0,0 +1,20 @@ +services: + openvpn: + image: openvpn/openvpn-as:latest + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:943" + - "${PANEL_APP_PORT_HTTPS}:443" + - "${PANEL_APP_PORT_UDP}:1194/udp" + cap_add: + - NET_ADMIN + volumes: + - "./data:/openvpn" + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/openvpn/logo.png b/openvpn/logo.png new file mode 100644 index 000000000..385bfd2d2 Binary files /dev/null and b/openvpn/logo.png differ