Coder Social home page Coder Social logo

reyzal2018 / luci-app-shadowsocks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadowsocks/luci-app-shadowsocks

0.0 0.0 0.0 309 KB

OpenWrt/LEDE LuCI for Shadowsocks-libev

License: GNU General Public License v3.0

Makefile 5.46% Lua 35.64% Shell 33.44% HTML 5.85% C 19.62%

luci-app-shadowsocks's Introduction

OpenWrt LuCI for Shadowsocks-libev

Latest release

简介

本软件包是 shadowsocks-libev 的 LuCI 控制界面, 方便用户控制和使用「透明代理」「SOCKS5 代理」「端口转发」功能.

软件包文件结构:

/
├── etc/
│   ├── config/
│   │   └── shadowsocks                             // UCI 配置文件
│   │── init.d/
│   │   └── shadowsocks                             // init 脚本
│   └── uci-defaults/
│       └── luci-shadowsocks                        // uci-defaults 脚本
└── usr/
    ├── bin/
    │   ├── ss-rules                                // 生成代理转发规则的脚本
    │   └── ss-subscribe                            // 订阅脚本
    │── lib/
    │   └── lua/
    │       └── luci/                               // LuCI 部分
    │           ├── controller/
    │           │   └── shadowsocks.lua             // LuCI 菜单配置
    │           ├── i18n/                           // LuCI 语言文件目录
    │           │   └── shadowsocks.zh-cn.lmo
    │           │── model/
    │           │   └── cbi/
    │           │       └── shadowsocks/
    │           │           ├── general.lua         // LuCI 基本设置
    │           │           ├── subscription.lua    // LuCI 订阅管理
    │           │           ├── servers.lua         // LuCI 服务器列表
    │           │           ├── servers-details.lua // LuCI 服务器编辑
    │           │           └── access-control.lua  // LuCI 访问控制
    │           └── view
    │               └── shadowsocks/
    │                   ├── general.htm             // LuCI View 基本设置
    │                   ├── servers-details.htm     // LuCI View 服务器编辑
    │                   └── subscribe.htm           // LuCI View 订阅管理
    └── share/
        └── rpcd/
            └── acl.d/
                └── luci-app-shadowsocks.json       // UCI 访问控制列表

依赖

软件包的正常使用需要依赖 wgetresolveipiptablesipset.
软件包不显式依赖 shadowsocks-libev, 会根据用户添加的可执行文件启用相应的功能.
可执行文件可通过安装 openwrt-shadowsocks 中提供的 shadowsocks-libev 获得.
只有当文件存在时, 相应的功能才可被使用, 并显示相应的 LuCI 设置界面.

可执行文件 可选 功能 TCP协议 UDP协议
ss(r)-redir 透明代理 支持 需安装 iptables-mod-tproxy, ip
ss(r)-local SOCKS5 代理 支持 支持
ss(r)-tunnel 端口转发 支持 支持

注: 可执行文件在 $PATH 环境变量所表示的搜索路径中, 都可被正确调用.

配置

软件包的配置文件路径: /etc/config/shadowsocks
此文件为 UCI 配置文件, 配置方式可参考 Wiki -> Use-UCI-systemOpenWrt Wiki
透明代理的访问控制功能设置可参考 Wiki -> LuCI-Access-Control

编译

从 OpenWrt 的 SDK 编译

# 解压下载好的 SDK
tar xjf OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
cd OpenWrt-SDK-ar71xx-*
# Clone 项目
git clone https://github.com/shadowsocks/luci-app-shadowsocks.git package/luci-app-shadowsocks
# 编译 po2lmo (如果有po2lmo可跳过)
pushd package/luci-app-shadowsocks/tools/po2lmo
make && sudo make install
popd
# 选择要编译的包 LuCI -> 3. Applications
make menuconfig
# 开始编译
make package/luci-app-shadowsocks/compile V=99

luci-app-shadowsocks's People

Contributors

aa65535 avatar hqvv avatar kuoruan avatar zsien avatar moshater avatar ibrother avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.