# powwall **Repository Path**: powerx-io/powwall ## Basic Information - **Project Name**: powwall - **Description**: 在云服务器不适合将端口向所有ip(0.0.0.0/0)的情况下,通过云平台API动态对某些机器ip放开端口。提供服务端和客户端能力,服务端提供接口(获取ticket、注册ip),客户端定时注册,解决IP变动问题 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-11 - **Last Updated**: 2025-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 证书管理 ## 功能 1. 通过acme.sh自动申请证书 2. 每天定时检查证书是否过期,过期则更新证书 3. ## 配置说明 # Server部署 ## 使用systemd管理 创建powwall.service: `vi /etc/systemd/system/powwall.service` ``` [Unit] Description=Powwall After=network.target After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/opt/powwall/powwall -c /opt/powwall/config.yaml -m server Restart=on-failure LimitNOFILE=65536 [Install] WantedBy=multi-user.target ``` ## 启动powwall ``` 启动: systemctl start powwall 设置开机启动: systemctl enable powwall ``` # Client部署 ## Mac 使用launchctl管理,创建 `~/Library/LaunchAgents/powwall.plist` ``` Label powwall ProgramArguments /Users/{yourName}/.powwall/powwall -c /Users/{yourName}/.powwall/config.yaml KeepAlive WorkingDirectory /Users/{yourName}/.powwall StandardOutPath /Users/{yourName}/.powwall/stdout.log ``` 启动powwall: `launchctl load ~/Library/LaunchAgents/powwall.plist`