Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能把某个分支追加的服务端支持并进来吗? #8

Open
daiaji opened this issue Oct 25, 2017 · 20 comments
Open

能把某个分支追加的服务端支持并进来吗? #8

daiaji opened this issue Oct 25, 2017 · 20 comments

Comments

@daiaji
Copy link

daiaji commented Oct 25, 2017

esdeathlove/master应该是这边加的ssr服务端
但是很不幸随着主干删除一并没了
不过好在还有备份
我用的时候 路由器上可以开服务端
debian上似乎有bug
不过可能是esdeathlove/master太老了
路由器上用这个感觉还可以

@daiaji daiaji changed the title 能把某个分支服务端的支持并进来吗? 能把某个分支追加的服务端支持并进来吗? Oct 25, 2017
@honwen
Copy link

honwen commented Oct 25, 2017

破娃从一开始就没写libev的server.

你看 https://github.com/ywb94/shadowsocks-libev/commits/dev/src/server.c 就知道了

@daiaji
Copy link
Author

daiaji commented Oct 26, 2017

@chenhw2 我知道她没写啊
所以说才是从esdeathlove那并过来
用arm mips设备搭服务端也能方便点啊
加点老版本没有的功能也挺正常嘛

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji esdeathlove 也没写, 没有谁加了libev的ssr服务端

@daiaji
Copy link
Author

daiaji commented Oct 26, 2017

@chenhw2 为了确认我确实没有活在梦里……
我重新编译了https://github.com/ywb94/openwrt-ssr
然后OK没问题
服务端可用
我看选项似乎客户端和服务端tls1.2_ticket_auth都有实现
用tls1.2_ticket_auth 服务端会报错
ERROR: server recv: Connection reset by peer
(有选项但是具体有没有不知道 我的SSR py服务端删掉了
能正常用的配置是

{
    "server": "0.0.0.0",
    "server_port": 8388,
    "password": "hello!!",
    "timeout": 60,
    "method": "rc4-md5",
    "protocol": "origin",
    "obfs": "http_simple",
    "obfs_param": "",
    "fast_open": false
}

obfs应该是ssr特有的特性吧
我说我好像用路由器免流免了十多个G
不能说是做梦就是做梦吧

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji 你确实活着梦里,https://github.com/ywb94/shadowsocks-libev/blob/dev/src/server.c 中根本没实现ssr的obfs/protocol, 编译出来也只会是原版ss

@daiaji
Copy link
Author

daiaji commented Oct 26, 2017

@chenhw2 这么说"obfs": "http_simple"是ss的实现咯?

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji 你写再多的配置,server也不会读,随便你写什么配置

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji 都说了让你看code,你好好看看code告诉我server在哪里接受你的obfs配置了

@daiaji
Copy link
Author

daiaji commented Oct 26, 2017

@chenhw2

2017-04-02 20:04:07 INFO: protocol origin 2017-04-02 20:04:07 INFO: protocol_param (null) 2017-04-02 20:04:07 INFO: method chacha20-ietf 2017-04-02 20:04:07 INFO: obfs http_simple 2017-04-02 20:04:07 INFO: obfs_param (null) 2017-04-02 20:04:07 INFO: initializing ciphers... chacha20-ietf 2017-04-02 20:04:07 INFO: tcp port reuse enabled 2017-04-02 20:04:07 INFO: listening at 0.0.0.0:18388 2017-04-02 20:04:09 INFO: accept a connection

早些日子的日志
obfs应该是启用的

root@localhost:~# ss-server -c /etc/shadowsocks-libev/config.json
2017-04-02 01:29:09 INFO: initializing ciphers... chacha20-ietf
2017-04-02 01:29:09 INFO: tcp port reuse enabled
2017-04-02 01:29:09 INFO: listening at 0.0.0.0:18388
2017-04-02 01:29:09 INFO: running from root user
2017-04-02 01:29:09 ERROR: failed to handshake with 111.22.82.90
2017-04-02 01:29:09 ERROR: failed to handshake with 111.22.82.90

原版确实是直接不读的

具体源码是咋了就不清楚了

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji 算了,跟不会code的人没什么好说的了。

2017-10-26 14-48-15

@daiaji
Copy link
Author

daiaji commented Oct 26, 2017

@honwen
Copy link

honwen commented Oct 26, 2017

@daiaji Sorry,之前一直看错分支了。看了一下,工程量不小

@Akkariiin
Copy link
Member

暂时不能

原因有三:
一个是没有必要
二个是现在没有足够的维护力量
三个是现在正在考虑是否要重构libev这边

但是可以作为一个远景来考虑。

@daiaji
Copy link
Author

daiaji commented Oct 29, 2017

@Akkariiin 重构?这么厉害的吗?
因为ssr也被流量识别的这种说法?

@Akkariiin
Copy link
Member

@daiaji 重构编译框架,现在libev的编译框架太乱,升级不了libsodium库。

@ssrlive
Copy link

ssrlive commented Nov 6, 2017

哥們 @Akkariiin @chenhw2 看看我的工作. 魔改 ssr-libev 現在 內核骨架是 libuv 了.
https://github.com/ShadowsocksR-Live/shadowsocksr-native
能合作搞一個完善的 SSR 軟件系列嗎.

@daiaji
Copy link
Author

daiaji commented Nov 6, 2017

@Akkariiin
#7 (comment)
panda-mute 说是某个补丁关掉了某个功能……

@Akkariiin
Copy link
Member

@ssrlive 为了保证稳定性和可用性,短期内不会动核心代码

@Akkariiin
Copy link
Member

@daiaji 不太明白你想表达的意思

@daiaji
Copy link
Author

daiaji commented Nov 15, 2017

@Akkariiin
panda-mute发的
openwrt-develop/openwrt-shadowsocksr#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants