SkillAgentSearch skills...

LightProxy

轻量级 socks5 和 http 代理

Install / Use

/learn @fscarmen2/LightProxy
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

代理服务安装脚本说明

目录


脚本介绍

本仓库包含两个轻量级的 socks5http 代理服务安装脚本:

  1. 3proxy.sh - 轻量级代理服务

    • 支持 HTTP 和 SOCKS5 协议
    • 使用系统原生包管理安装
    • 自动配置 systemd 服务
  2. 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基础工具 |


注意事项

  1. 端口冲突检查:

    • 脚本会自动检查端口占用情况
    • 如遇冲突请修改默认端口
  2. 服务管理:

    # 3proxy 服务管理
    sudo systemctl status/restart/stop 3proxy
    
    # Xray/Sing-box 服务管理
    sudo systemctl status/restart/stop proxy
    
  3. 日志查看:

    journalctl -u 3proxy -f
    journalctl -u proxy -f
    
  4. Alpine 系统注意事项:

    • 仅支持 socks5-http.sh
  5. 安全建议:

    • 默认仅监听 127.0.0.1
    • 如需外部访问请修改配置文件后重启服务

Related Skills

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated2mo ago
Forks3

Languages

Shell

Security Score

75/100

Audited on Jan 16, 2026

No findings