• Stars
    star
    1,149
  • Rank 40,592 (Top 0.8 %)
  • Language
    Lua
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenWrt/LEDE LuCI for Shadowsocks-libev

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 ่ฎฟ้—ฎๆŽงๅˆถๅˆ—่กจ

ไพ่ต–

่ฝฏไปถๅŒ…็š„ๆญฃๅธธไฝฟ็”จ้œ€่ฆไพ่ต– wgetใ€resolveipใ€iptables ๅ’Œ ipset.
่ฝฏไปถๅŒ…ไธๆ˜พๅผไพ่ต– 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-system ๅ’Œ OpenWrt 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

More Repositories

1

shadowsocks-windows

A C# port of shadowsocks
C#
58,398
star
2

shadowsocks-android

A shadowsocks client for Android
Kotlin
35,072
star
3

shadowsocks

Python
33,580
star
4

ShadowsocksX-NG

Next Generation of ShadowsocksX
Swift
32,386
star
5

shadowsocks-rust

A Rust port of shadowsocks
Rust
8,442
star
6

shadowsocks-iOS

Removed according to regulations.
Objective-C
8,181
star
7

shadowsocks-qt5

A cross-platform shadowsocks GUI client
C++
7,971
star
8

shadowsocks-go

go port of shadowsocks (Deprecated)
Go
6,610
star
9

shadowsocks-manager

A shadowsocks manager tool for multi user and traffic control.
JavaScript
4,116
star
10

ChinaDNS

Protect yourself against DNS poisoning in China.
C
3,596
star
11

openwrt-shadowsocks

Shadowsocks-libev for OpenWrt/LEDE
Makefile
3,249
star
12

v2ray-plugin

A SIP003 plugin based on v2ray
Go
2,689
star
13

simple-obfs

A simple obfuscating tool (Deprecated)
C
2,361
star
14

shadowsocks-gui

Shadowsocks GUI client
CoffeeScript
2,013
star
15

libQtShadowsocks

A lightweight and ultra-fast shadowsocks library written in C++14 with Qt framework
C++
1,500
star
16

shadowsocks-nodejs

CoffeeScript
1,246
star
17

shadowsocks-org

www.shadowsocks.org
HTML
877
star
18

ChinaDNS-Python

Protect yourself against DNS poisoning in China.
Python
767
star
19

shadowsocks-chromeapp

Chrome client for shadowsocks
CoffeeScript
698
star
20

kcptun-android

kcptun for Android.
Shell
570
star
21

simple-obfs-android

A simple obfuscating tool for Android
C
440
star
22

v2ray-plugin-android

A SIP003 V2ray plugin on Android
Kotlin
439
star
23

crypto2

The fastest cryptographic library in the galaxy
Rust
350
star
24

ShadowDNS

A DNS forwarder using Shadowsocks as the server
Python
334
star
25

papers

List of papers related to shadowsocks
211
star
26

shadowsocks-dotcloud

a port of shadowsocks via websockets protocol, able to tunnel through HTTP proxy
CoffeeScript
202
star
27

shadowsocks-hub

A web app managing shadowsocks users, servers, nodes, products, accounts, and traffic. Suitable for internal use by companies, organizations, and friends.
JavaScript
133
star
28

qtun

Yet another SIP003 plugin based on IETF-QUIC
Rust
122
star
29

shadow-shop

Building highly customizable e-commerce websites selling shadowsocks services, using Wordpress and WooCommerce
PHP
107
star
30

tun2socks-iOS

tun2socks as a library for iOS apps
96
star
31

Shadowsocks-Net

โœˆ A light-weight, cross-platform, extensible Shadowsocks developed in C# (.NET Core).
C#
95
star
32

shadowsocks-restful-api

Secure, reliable, standard restful api for managing shadowsocks-libev
JavaScript
83
star
33

stackscript

Shell
73
star
34

libsscrypto

Build libsscrypto.dll for shadowsocks-windows.
C
61
star
35

iptables

iptables is the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset. It is targeted towards system administrators.
C
56
star
36

openwrt-feeds

OpenWrt/LEDE feeds
Makefile
54
star
37

shadowsocks-crypto

Shadowsocks Crypto
Rust
46
star
38

libev

A fork of libev
Shell
37
star
39

sysproxy

System Proxy Agent for Shadowsocks Windows
C
32
star
40

shadowsocks-hub-api

A set of open and standard restful APIs for managing shadowsocks users, servers, nodes, products, accounts, and traffic.
JavaScript
27
star
41

openssl-android

A fork of OpenSSL for shadowsocks-android
C
27
star
42

tun2socks

Rust
25
star
43

android-ndk-go

Circle CI Android image with NDK and golang + rust, for building golang and/or rust for NDK.
Dockerfile
20
star
44

libudns

A fork of libudns
C
13
star
45

overture-android

A wrapper of overture for shadowsocks-android
Shell
10
star
46

tls

TLS version 1.3
Rust
8
star
47

iana-ip-db

IANA IP Number Resources
Rust
5
star