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

请求加入simple-obfs功能 #43

Open
ccc2ccc opened this issue Apr 9, 2018 · 12 comments
Open

请求加入simple-obfs功能 #43

ccc2ccc opened this issue Apr 9, 2018 · 12 comments

Comments

@ccc2ccc
Copy link

ccc2ccc commented Apr 9, 2018

现在的ss供应商提供的都是有simple-obfs的服务,请求加入此功能,谢谢

@Paull
Copy link
Owner

Paull commented Apr 9, 2018

用插件形式启不起来,错误提示不够完整,独立模式可以启动,有兴趣的可以手动试一下,点此下载编译好的极路由obfs文件

@Paull
Copy link
Owner

Paull commented Apr 9, 2018

插件模式启动方式:

cat /var/run/easucks.pid|xargs kill
/usr/bin/ss-redir -c /tmp/easucks/ss.json --plugin obfs-local --plugin-opts "obfs=http;obfs-host=bing.com"

独立模式启动方式:

cat /var/run/easucks.pid|xargs kill
/usr/bin/obfs-local -s 服务器IP -p 服务器端口 -l 本地端口 --obfs http --obfs-host bing.com
/usr/bin/ss-redir -c /tmp/easucks/ss.json -s 127.0.0.1 -p 本地端口

有兴趣的可以先手工试一下,看看有什么异常,特别是插件模式我这启动不了。
由于要用到ss配置信息,所以是先在管理界面启动ss,再通过cat /var/run/easucks.pid|xargs kill杀死ss进程

@Paull
Copy link
Owner

Paull commented Apr 17, 2018

如上,已添加手工测试方法,有人能在不同型号的极路由器上测试一下吗?

@ccc2ccc
Copy link
Author

ccc2ccc commented Apr 17, 2018

我的ss是开着混淆的才能连上,用助手就一直提示未连接,用手动命令第一条就显示如下了,第三条命令的时候也是没反应,本地端口是可以随便写一个吗?

root@Hiwifi:# kill cat /var/run/easucks.pid
ash: invalid number 'cat'
ash: invalid number '/var/run/easucks.pid'
root@Hiwifi:
# /usr/bin/obfs-local -s 104.155.251.* -p 8989 -l 61080 --obfs http
--obfs-host bing.com
2018-04-17 18:13:40 [simple-obfs] INFO: obfuscating enabled
2018-04-17 18:13:40 [simple-obfs] INFO: obfuscating hostname: bing.com
2018-04-17 18:13:40 [simple-obfs] INFO: tcp port reuse enabled
2018-04-17 18:13:40 [simple-obfs] INFO: listening at 127.0.0.1:61080
2018-04-17 18:13:40 [simple-obfs] INFO: running from root user
/usr/bin/ss-redir -c /tmp/easucks/ss.json -s 127.0.0.1 -p 61080

@Paull
Copy link
Owner

Paull commented Apr 19, 2018

@ccc2ccc
本地端口是随便写,只要没被占用就行。
我看你第一条指令有错误,漏了两个符号,我把指令改了种写法。
然后你这么运行后,能上了吗?
我看你IP是GOOGLE的,本来就是被墙的吧?

@ccc2ccc
Copy link
Author

ccc2ccc commented Apr 19, 2018

@Paull 新的命令晚上回家去试。google 云的服务还是可以用的,速度也快的。

@ccc2ccc
Copy link
Author

ccc2ccc commented Apr 19, 2018

@Paull 助手现在是开机启动,未连接状态(因为混淆开不起来是连接不上)。

第一条命令
root@Hiwifi:~# cat /var/run/easucks.pid|xargs kill
cat: can't open '/var/run/easucks.pid': No such file or directory
kill: you need to specify whom to kill

极3pro

@Paull
Copy link
Owner

Paull commented Apr 23, 2018

@ccc2ccc
cat /tmp/easucks/ss.json看下有没有东西,没有东西的话你只能先手工指定参数启动试下

/usr/bin/obfs-local -s 服务器IP -p 服务器端口 -l 本地端口 --obfs http --obfs-host bing.com
/usr/bin/ss-redir -s 127.0.0.1 -p 本地端口 -l 61717 -k SS密码 -m SS加密

这样试下有没有用

@ccc2ccc
Copy link
Author

ccc2ccc commented Apr 28, 2018

@Paull
手动指定参数

第一条命令打完提示如下,命令行就不动了。
2018-04-28 14:56:00 [simple-obfs] INFO: obfuscating enabled
2018-04-28 14:56:00 [simple-obfs] INFO: tcp port reuse enabled
2018-04-28 14:56:00 [simple-obfs] INFO: listening at 127.0.0.1:61081
2018-04-28 14:56:00 [simple-obfs] INFO: running from root user

打了第二条
root@Hiwifi:~# /usr/bin/ss-redir -s 127.0.0.1 -p 61081 -l 61717 -k 我的密码 -m ch
acha20-ietf-poly1305
-ash: /usr/bin/ss-redir: not found

@Paull
Copy link
Owner

Paull commented Apr 28, 2018

第1条最后面加个 & 符号,可直接放到后台运行;或者再开一个SSH客户端运行第二句。
/usr/bin/ss-redir是本插件最基本的程序,装了插件不可能没有的啊。

@Paull
Copy link
Owner

Paull commented Apr 28, 2018

实在没有ss-redir的话,试试重装或升级吧:

插件重新安装/升级方法

  • 进ssh执行curl easucks.cn|sh

加密升级方法

如需增加chacha20-ietf-poly1305、aes-256-gcm等加密方式:

  • 进ssh执行curl easucks.cn/ss_update|sh

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

3 participants
@Paull @ccc2ccc and others