Giter Site home page Giter Site logo

shadowsocks / shadowsocksx-ng Goto Github PK

View Code? Open in Web Editor NEW
32.2K 943.0 8.0K 49.46 MB

Next Generation of ShadowsocksX

License: GNU General Public License v3.0

Ruby 0.40% Swift 66.12% Objective-C 24.44% Shell 3.78% Python 3.42% C 0.35% Rich Text Format 0.83% Makefile 0.65%
shadowsocks swift macos shadowsocksx-ng v2ray-plugin kcptun

shadowsocksx-ng's Introduction

ShadowsocksX-NG

Download

Actions Status

Next Generation of ShadowsocksX

Why a new implementation?

It's hard to maintain the original implementation as there is too much unused code in it. It also embeds the ss-local source code. It's crazy to maintain dependencies of ss-local. So it's hard to update the ss-local version.

Now I just copied the ss-local from Homebrew. Run ss-local executable as a Launch Agent in the background. So there is only some source code related to GUI left. Then I have rewrited the GUI code in Swift.

Requirements

Running

macOS 10.12+

Building

  • Xcode 12.5.1+
  • CocoaPods 1.10.1+

Download

From here

Features

  • ss-local from shadowsocks-libev 3.2.5.
  • Support SIP003 plugins. Embed kcptun, simple-obfs and v2ray-plugin.
  • Could update PAC by download GFW List from GitHub.
  • Share your server profiles by qrcode or url.
  • Import server profile urls from pasteboard.
  • Import server profile by scan QRCode on screen.
  • Custom rules for PAC.
  • Support for AEAD Ciphers
  • HTTP Proxy by privoxy

Difference from original ShadowsocksX

ss-local is run as a background service through launchd, not as an in-app process. So after you quit the app, the ss-local might be still running.

Added a manual mode which won't configure the system proxy settings, so that you could configure your apps to use the SOCKS5 proxy manually.

Contributing

Contributions must be available on a separately named branch based on the latest version of the main branch develop.

ref: GitFlow

License

The project is released under the terms of the GPLv3.

shadowsocksx-ng's People

Contributors

bdyebd avatar beeestv avatar bjzhou avatar crispgm avatar cs17899219 avatar gino2010 avatar gongzhang avatar guoxu0514 avatar jibon57 avatar julienschmidt avatar k1er avatar lkebin avatar nebulabox avatar nidom avatar nobelliu avatar qinyuhang avatar qiuyuzhou avatar rainux avatar rizwankce avatar sunshushu avatar testpersonal avatar timothyqiu avatar uiryuu avatar vayn avatar whao avatar woodylan avatar wxh06 avatar yichengchen avatar zhfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shadowsocksx-ng's Issues

连不上被墙的网站

无论是手动然后用代理插件还是全局模式都连不上,浏览器Firefox和Safari都试过了。
SS服务器是好的,在Win上可以正常上Google。
2016-09-18 14 53 57
16/9/18 14:39:27.213 ShadowsocksX-NG[1060]: Stop ss-local succeeded.
16/9/18 14:39:27.214 ShadowsocksX-NG[1060]: run shadowsocks helper: /Library/Application Support/ShadowsocksX-NG/proxy_conf_helper
16/9/18 14:39:27.274 ShadowsocksX-NG[1060]: pac proxy set to off
16/9/18 14:45:33.701 ShadowsocksX-NG[1060]: bind profile 0
16/9/18 14:45:35.320 ShadowsocksX-NG[1060]: bind profile 1
16/9/18 14:45:36.005 ShadowsocksX-NG[1060]: bind profile 2
16/9/18 14:45:36.603 ShadowsocksX-NG[1060]: bind profile 3
16/9/18 14:45:37.191 ShadowsocksX-NG[1060]: bind profile 4
16/9/18 14:45:38.089 ShadowsocksX-NG[1060]: bind profile 0
16/9/18 14:45:59.863 com.apple.xpc.launchd[1]: (com.qiuyuzhou.shadowsocksX-NG.local) This service is defined to be constantly running and is inherently inefficient.
16/9/18 14:45:59.923 ShadowsocksX-NG[1060]: Start ss-local succeeded.
16/9/18 14:45:59.923 ShadowsocksX-NG[1060]: run shadowsocks helper: /Library/Application Support/ShadowsocksX-NG/proxy_conf_helper
16/9/18 14:45:59.979 ShadowsocksX-NG[1060]: pac proxy set to off
16/9/18 14:50:28.834 ShadowsocksX-NG[1060]: Start ss-local succeeded.
16/9/18 14:50:28.835 ShadowsocksX-NG[1060]: run shadowsocks helper: /Library/Application Support/ShadowsocksX-NG/proxy_conf_helper
16/9/18 14:50:28.890 ShadowsocksX-NG[1060]: pac proxy set to global

osx 10.11.6无法使用

之前用ss2.8.6是没问题的 用了这个以后PAC提示更新成功但是打开FB没反应 切换全局直接秒断

Shadowsocks failed to work, SSL handshake -9806

Hello mr. qiu,

My shadowsocksX was working properly but this week it suddenly fail to work as well as shadowsocksX-NG. Proxy can't go through socks5 127.0.0.1:1080 (However ssh -D 1080 does). While trying to update gfw list in global proxy mode, it informs me with:

16/7/22 上午12:52:10.848 ShadowsocksX-NG[2491]: CFNetwork SSLHandshake failed (-9806)
16/7/22 上午12:52:10.849 ShadowsocksX-NG[2491]: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)

Any ideas?

Thank you very much!

希望提供网络选择功能

我是学校拨VPN上网,在网络设置里面第一个是以太网(访问学校内网),第二个是作热点分享的wifi,第三个是VPN连接,在shadowsocks里面切换模式后,代理设置只应用在第一个也就是以太网里面,希望能够提供设定网络选择的功能。

服务顺序里面修改了以太网还是会回到第一个......

希望rules可以支持多个list, server list可以和rule关联

  • Rules像Servers那样, 有个列表可以切换.
  • 或, server可以选择关联一个rule规则.

场景如下:

  • 公司路由自带VPN, 常用域名都可以翻, 但是封了部分资源下载的站点(我需要用ss看这些.)
  • 而家里就是正常的流程了, 只需要翻真正被封的那些域名.

2个环境, 需要2个不同的规则.
如果在公司或者家里, 每次都需要重新改下规则, 感觉略麻烦.

ShadowsocksX-NG启动时总是清空系统代理设置

Add a manual mode which won't configure the system proxy settings

根据readme的说法,手动模式不会修改系统代理设置,但我反复测试发现,在「Shadowsocks:关闭」的情况下,只要SSX-NG启动,就会清空系统代理,不管是Pac自动模式、全局模式、手动模式,也不管「高级代理设置」的「自动设置」选项是否勾选,请确认是否是bug。

备注:

  • ShadowsocksX不会出现这个问题。
  • 我知道在「Shadowsocks:打开」的情况下,系统代理设置会被修改,但目前我并没有打开。

环境:

  • Mac OS version: 10.11.6
  • SSX-NG version: 1.1

使用出现问题

服务器的配置是跟原始的版本是相同的,今天安装您的这个版本之后,发现全局和PAC模式均无法实现代理功能,日志如下,能帮忙看下是什么问题么?系统版本是10.11。

Process: ShadowsocksX-NG [3525]
Path: /Applications/ShadowsocksX-NG.app/Contents/MacOS/ShadowsocksX-NG
Identifier: com.qiuyuzhou.ShadowsocksX-NG
Version: 1.2 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: ShadowsocksX-NG [3525]
User ID: 501

Date/Time: 2016-09-07 16:49:13.602 +0800
OS Version: Mac OS X 10.11.6 (15G1004)
Report Version: 11
Anonymous UUID: 7955B7E7-2E12-A05A-7557-B0035A9EE7EA

Sleep/Wake UUID: 9EB892E0-D85A-4826-BC4F-55803ABC822B

Time Awake Since Boot: 40000 seconds
Time Since Wake: 25000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
Performing @selector(_close:) from sender _NSThemeCloseWidget 0x7fac3b64fee0

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.qiuyuzhou.ShadowsocksX-NG 0x000000010e34e254 0x10e327000 + 160340
1 com.qiuyuzhou.ShadowsocksX-NG 0x000000010e349d3e 0x10e327000 + 142654
2 com.apple.Foundation 0x00007fff99fb78fb -[NSObserver _doit:] + 320
3 com.apple.CoreFoundation 0x00007fff8f1b4bbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
+ 12
4 com.apple.CoreFoundation 0x00007fff8f1b4b4f _CFXRegistrationPost_block_invoke + 63
5 com.apple.CoreFoundation 0x00007fff8f1b4ac7 _CFXRegistrationPost + 407
6 com.apple.CoreFoundation 0x00007fff8f1b4832 ___CFXNotificationPost_block_invoke + 50
7 com.apple.CoreFoundation 0x00007fff8f1715e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
8 com.apple.CoreFoundation 0x00007fff8f170835 _CFXNotificationPost + 693
9 com.apple.Foundation 0x00007fff99f6b17a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
10 com.qiuyuzhou.ShadowsocksX-NG 0x000000010e333311 0x10e327000 + 49937
11 com.apple.CoreFoundation 0x00007fff8f1b4bbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
+ 12
12 com.apple.CoreFoundation 0x00007fff8f1b4b4f ___CFXRegistrationPost_block_invoke + 63
13 com.apple.CoreFoundation 0x00007fff8f1b4ac7 _CFXRegistrationPost + 407
14 com.apple.CoreFoundation 0x00007fff8f1b4832 ___CFXNotificationPost_block_invoke + 50
15 com.apple.CoreFoundation 0x00007fff8f1715e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
16 com.apple.CoreFoundation 0x00007fff8f170835 _CFXNotificationPost + 693
17 com.apple.Foundation 0x00007fff99f6b17a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
18 com.apple.AppKit 0x00007fff9c881213 __18-[NSWindow _close]_block_invoke + 184
19 com.apple.AppKit 0x00007fff9c881115 -[NSWindow _close] + 374
20 com.apple.AppKit 0x00007fff9c91add5 -[NSWindow __close] + 312
21 libsystem_trace.dylib 0x00007fff8e18707a _os_activity_initiate + 75
22 com.apple.AppKit 0x00007fff9c835dbd -[NSApplication sendAction:to:from:] + 460
23 com.apple.AppKit 0x00007fff9c847f12 -[NSControl sendAction:to:] + 86
24 com.apple.AppKit 0x00007fff9c847e3c __26-[NSCell _sendActionFrom:]_block_invoke + 131
25 libsystem_trace.dylib 0x00007fff8e18707a _os_activity_initiate + 75
26 com.apple.AppKit 0x00007fff9c847d99 -[NSCell _sendActionFrom:] + 144
27 libsystem_trace.dylib 0x00007fff8e18707a _os_activity_initiate + 75
28 com.apple.AppKit 0x00007fff9c8463be -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2693
29 com.apple.AppKit 0x00007fff9c88ef04 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 744
30 com.apple.AppKit 0x00007fff9c844ae8 -[NSControl mouseDown:] + 669
31 com.apple.AppKit 0x00007fff9c8f013e -[_NSThemeWidget mouseDown:] + 87
32 com.apple.AppKit 0x00007fff9cd993c9 -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
33 com.apple.AppKit 0x00007fff9cd9a3ad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
34 com.apple.AppKit 0x00007fff9c7d9539 -[NSWindow sendEvent:] + 517
35 com.apple.AppKit 0x00007fff9c759a38 -[NSApplication sendEvent:] + 2540
36 com.qiuyuzhou.ShadowsocksX-NG 0x000000010e329834 0x10e327000 + 10292
37 com.apple.AppKit 0x00007fff9c5c0df2 -[NSApplication run] + 796
38 com.apple.AppKit 0x00007fff9c58a368 NSApplicationMain + 1176
39 com.qiuyuzhou.ShadowsocksX-NG 0x000000010e347029 0x10e327000 + 131113
40 libdyld.dylib 0x00007fff8958d5ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8908fefa kevent_qos + 10
1 libdispatch.dylib 0x00007fff8fff0165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff8ffefdcd _dispatch_mgr_thread + 52

Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff89088f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff890883b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8f19e1c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8f19d68c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff8f19ced8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff9c722d95 _NSEventThread + 149
6 libsystem_pthread.dylib 0x00007fff967cc99d _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff967cc91a _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff967ca351 thread_start + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff8908f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff967cc578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff967ca341 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff8908f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff967cc578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff967ca341 start_wqthread + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff8908f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff967cc578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff967ca341 start_wqthread + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fff8908f5e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff967cc578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff967ca341 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x001dffff79cacce1 rdx: 0x00007fac3b51fb18
rdi: 0x00007fac3b719ee0 rsi: 0x000000040000078c rbp: 0x00007fff518d6a10 rsp: 0x00007fff518d69b0
r8: 0x0000000000000038 r9: 0x0000000000000000 r10: 0x00007fac3c800c20 r11: 0x00007fff79cacce0
r12: 0x00007fac3b710d90 r13: 0x00007fac3b417950 r14: 0x000000010e761ec0 r15: 0x00007fff9e841400
rip: 0x000000010e34e254 rfl: 0x0000000000010246 cr2: 0x0000700000091d9f

Logical CPU: 0
Error Code: 0x02000170
Trap Number: 133

没有~/Library/LaunchAgents文件夹启动故障

hi~,你知道 kcptun 吗? 这两天我把你这个项目里的ss-local换成了kcptun,效果还是不错滴。 但是今天打好包拿到公司的mac mini上试了下,结果启动不了。 一查原来这台mac mini上没有LanuchAgents目录,导致启动脚本写入失败。
因为我不是搞ios开发的,很多地方不熟悉,不知是否是我哪里没改对。。。

Twitter和tweetbot客户端PAC代理模式没法访问

在PAC代理的模式下Twitter客户端或者tweetbot客户端都没办法FQ,但是Twitter网页版却是可以访问。全局情况下都可以访问,哪位哥哥知道怎么设置可以让代理模式下也可以访问啊?

Crash 应用启动时闪退

image

9/2/16 10:08:42.732 ReportCrash[2674]: com.apple.message.domain: com.apple.crashreporter.writereport.crash
com.apple.message.signature: ShadowsocksX-NG
com.apple.message.signature2: com.qiuyuzhou.ShadowsocksX-NG ||| 1.2 (1)
com.apple.message.signature3: C6EFDDA577CEC5D650B70CCE97BCEF86
com.apple.message.result: NO
com.apple.message.summarize: YES
SenderMachUUID: BAB8DC6C-25DC-37CF-9484-4DEF8FBB8555

工具栏显示网速

希望可以像 surge Mac 一样能在工具栏显示当前网络上传下载速度

MacOS sierra 无法使用

今天手贱更新了 MacOS 到 10.12,发现『PAC自动模式』无法翻墙了……
现在必须挂『全局模式』才有效

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.