LightProxy
轻量级 socks5 和 http 代理
Install / Use
/learn @fscarmen2/LightProxyREADME
代理服务安装脚本说明
目录
脚本介绍
本仓库包含两个轻量级的 socks5 和 http 代理服务安装脚本:
-
3proxy.sh- 轻量级代理服务- 支持 HTTP 和 SOCKS5 协议
- 使用系统原生包管理安装
- 自动配置 systemd 服务
-
socks5-http.sh- 高级代理服务- 支持 Xray-core 和 Sing-box 两种内核
- 提供更丰富的协议支持
- 自动从 GitHub 下载最新版本
安装方法
3proxy 安装
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/3proxy.sh)
自定义端口安装
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/3proxy.sh) -h 8888 -s 1088
Xray/Sing-box 安装
安装 Xray (默认)
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/socks5-http.sh)
安装 Sing-box
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/socks5-http.sh) -t sing-box
自定义端口
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/socks5-http.sh) -h 8888 -s 1088
卸载方法
3proxy 卸载
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/3proxy.sh) -u
Xray/Sing-box 卸载
bash <(curl -sL https://raw.githubusercontent.com/fscarmen2/LightProxy/refs/heads/main/socks5-http.sh) -u
系统支持对比
| 特性 | 3proxy.sh | socks5-http.sh | |--------------------|-----------------------------------|-----------------------------------| | 支持系统 | | | | - Debian/Ubuntu | ✅ 通过.deb包安装 | ✅ 全功能支持 | | - RHEL/CentOS | ✅ 通过.rpm包安装 | ✅ 全功能支持 | | - Fedora | ✅ 通过.rpm包安装 | ✅ 全功能支持 | | - Alpine | ❌ 不兼容musl libc | ✅ 完整支持 | | - 其他Linux | ⚠️ 仅限systemd系统 | ✅ 支持systemd/OpenRC | | 初始化系统 | | | | - systemd | ✅ 完整支持 | ✅ 完整支持 | | - OpenRC | ❌ 不支持 | ✅ 完整支持 | | 处理器架构 | | | | - x86_64/amd64 | ✅ 自动识别 | ✅ 自动识别 | | - arm64/aarch64 | ✅ 自动识别 | ✅ 自动识别 | | - armv7/armhf | ✅ 自动识别 | ✅ 自动识别 | | - s390x | ❌ 不支持 | ❌ 不支持 | | 性能 | 轻量级 | 高性能 | | 资源占用 | 极低 | 中等 | | 特殊限制 | 依赖系统包管理器(apt/yum/dnf) | 需要curl/unzip基础工具 |
注意事项
-
端口冲突检查:
- 脚本会自动检查端口占用情况
- 如遇冲突请修改默认端口
-
服务管理:
# 3proxy 服务管理 sudo systemctl status/restart/stop 3proxy # Xray/Sing-box 服务管理 sudo systemctl status/restart/stop proxy -
日志查看:
journalctl -u 3proxy -f journalctl -u proxy -f -
Alpine 系统注意事项:
- 仅支持 socks5-http.sh
-
安全建议:
- 默认仅监听 127.0.0.1
- 如需外部访问请修改配置文件后重启服务
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
