Git Product home page Git Product logo

shadowsocks-heroku's Introduction

Remove all

shadowsocks-heroku's People

Contributors

521xueweihan 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

shadowsocks-heroku's Issues

Why do u set the remote port to '80' when starting local.js

node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80

大兄弟,想请教一个问题。

这里,启动local.js时,指定的远程端口是80,server.js 监听的是8080端口,而且,herokuapp提供的URL也是https(那就是443端口)。所以,为什么你的客户端指定80端口,可以正常工作,而指定443或者8080反而不能工作?

我尝试着把这个项目部署到非heroku的另外一个服务商zeit.co, e.g. https://alex-ssr-naobaigshf.now.sh/,直接打开这个链接,能够看到服务器正常启动了(你可以直接点开试试)。

但是,这次,就不能正常工作了。
"C:\Program Files\nodejs\node.exe" local.js -s alex-ssr-naobaigshf.now.sh -l 1080 -m aes-256-cfb -k barfoo! -r 80
这里,远程端口设置不论是80,443还是8080,都无法正常工作。

没有你的联系试,所以在这里问一下。如果“不方便”,就直接删除吧。
如果方便,能否帮忙看看或者解释一下,这个server.js到底怎么工作的?我看了一下源代码,并没有找到哪里有443端口接收到的内容转到8080端口。

p.s.
我是一个很传统的桌面应用老码农,对网络编程不是很懂。
通读完代码,我觉得理论上,你这个server应该能在所有支持http/https的网络服务上运行。

调查:禁止访问 heroku 网站的地区和线路

在不挂代理的情况下,有的线路已经无法正常登陆 heroku 的登陆页。有哪些小伙伴又跟我一样的情况吗?

  • 需要挂代理:
    • 北京移动的宽带
  • 不需要挂代理:
    • 北京市 鹏博士宽带

启动 local.js 报错

module.js:471
    throw err;
    ^

Error: Cannot find module './merge_sort'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (G:\GitHub\shadowsocks-heroku\encrypt.js:7:16)
    at Object.<anonymous> (G:\GitHub\shadowsocks-heroku\encrypt.js:207:4)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)

请问如何解决?

没有成功

按照您的教程做了,但是依然没有成功,是不是我heroku那边还要做什么操作啊,全程我没有看到一个地方配置账号的呢?

关于端口问题

设置完成后,打开shadowsocks,里面的端口填什么?80,还是1080,或是其它什么数字?

按照说明配置成功,但无法连接网络

按照说明配置成功,唯一不同点是port改为1082,SwitchyOmega也改为1082(因为1080已结在别的ss中使用),无法连接成功
server listening at { address: '127.0.0.1', family: 'IPv4', port: 1082 }
local connected
concurrent connections: 1
local connected
concurrent connections: 2
local connected
concurrent connections: 3
local connected
concurrent connections: 4
local connected
concurrent connections: 5
local connected
concurrent connections: 6
local connected
concurrent connections: 7
local connected
concurrent connections: 8
local connected
concurrent connections: 9
local connected
concurrent connections: 10
local disconnected
concurrent connections: 9
local connected
concurrent connections: 10
local disconnected
concurrent connections: 9

被限制了吗

connecting dashboard.heroku.com via ws://proxyall.herokuapp.com:80/
remote disconnected

启动本地 client 是在哪里?

启动本地 client 是什么意思,我每次使用都要在git 里输入node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80这个才行,我做的对吗?

最后一步报错,新手不明所以

Error: Cannot find module 'ws'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (D:\heroku\local.js:15:15)
at Object. (D:\heroku\local.js:322:4)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

Error:Cannot find module 'ws'

module.js:472
throw err;
^

Error: Cannot find module 'ws'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/Users/Andrew/Documents/VPN/shadowsocks-heroku/local.js:15:15)
at Object. (/Users/Andrew/Documents/VPN/shadowsocks-heroku/local.js:322:4)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

感谢大神,成功运行,只是速度有些慢。

1.速度有些慢。看youtube 最高在500KB/S(20M宽带,无其他代理配合),也是时不时remote disconnected
2.对于小白来讲(我就是),还需要提前下载安装好两个东西:
Download and run the Windows installer.
node-v6.9.2-x64.msi
启动本地 client是说 在Clone的项目文件夹里右键,选择get bash here,然后输入node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80

能不能用 sslocal 来运行?

我刚按照您给的布置了heroku,在ubuntu系统下 client我用的是sslocal命令,不知道为什么,无法运行啊,在您给的命令行中 -s 是服务器地址,-l 是本地端口, -k 是密码 , -m 是加密方式 ,但是我不知道 -r 是什么意思,也不知道怎么更改,它是指服务器的端口吗?

错误2333

remote f-log-extension.grammarly.io:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 11
remote clients1.google.com:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 10
remote www.google.com:443 Error: This socket has been ended by the other party
concurrent connections: 10
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 10
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 10
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 10
remote clients1.google.com:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 9
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 9
remote github.com:443 Error: This socket has been ended by the other party
remote github.com:443 Error: This socket has been ended by the other party
concurrent connections: 9
concurrent connections: 9
remote mail.google.com:443 Error: This socket has been ended by the other party
concurrent connections: 9
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 9
remote www.google.ca:443 Error: This socket has been ended by the other party
concurrent connections: 9
remote disconnected
remote assets-cdn.github.com:443 Error: write after end
remote assets-cdn.github.com:443 Error: write after end
concurrent connections: 9
concurrent connections: 9
remote github.com:443 Error: This socket has been ended by the other party
concurrent connections: 9
remote f-log-extension.grammarly.io:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 8
local disconnected
remote disconnected
concurrent connections: 7
local disconnected
remote disconnected
concurrent connections: 6
local disconnected
remote disconnected
concurrent connections: 5
local disconnected
remote disconnected
concurrent connections: 4
local disconnected
remote disconnected
concurrent connections: 3
local disconnected
remote disconnected
concurrent connections: 2
local disconnected
remote disconnected
concurrent connections: 1
local disconnected
remote disconnected
concurrent connections: 0
local connected
concurrent connections: 1
local connected
concurrent connections: 2
local connected
concurrent connections: 3
local connected
concurrent connections: 4
local error: Error: read ECONNRESET
concurrent connections: 3
local connected
concurrent connections: 4
remote github.com:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 3
remote clients1.google.com:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 2
remote clients1.google.com:443 error: Error: getaddrinfo ENOTFOUND yugoslavia.herokuapp.com yugoslavia.herokuapp.com:80
remote disconnected
concurrent connections: 1
local connected
concurrent connections: 2
local connected
concurrent connections: 3
local connected
concurrent connections: 4

四、启动本地client疑问

本人新手,操作到第四步启动本地client完全不知道该怎么操作,楼主第四步教程写的太简略了,新手完全看不懂无从下手,能不能把第四步写的详细一下?需要安装什么软件?提示什么界面才算部署成功?谢谢了!

remote disconnected

$ node local.js -s liujunhongz.herokuapp.com -l 1080 -m rc4-md5 -k killer -r 80
server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 }
local connected
concurrent connections: 1
local connected
concurrent connections: 2
connecting tip.f.360.cn via ws://liujunhongz.herokuapp.com:80/
remote disconnected
local connected
concurrent connections: 2
connecting errsug.se.360.cn via ws://liujunhongz.herokuapp.com:80/
remote disconnected
remote errsug.se.360.cn:80 Error: This socket has been ended by the other party
concurrent connections: 1
remote errsug.se.360.cn:80 Error: This socket has been ended by the other party
concurrent connections: 1
remote tip.f.360.cn:80 error: Error: unexpected server response (503)

谢谢啦

我也前来感谢大神,很好用,但是也是在YouTube上看视频有点卡,但是平时谷歌什么的基本解决了

四、启动本地 Client的最后一步出错,请教该如何解决?谢谢。

之前的步骤都按教主教程做好了,没也见提示出错,但在 四、启动本地 Client 最后一步 node local.js -s 你的app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -r 80(已经把app名称,加密,密码都改成自己设置的了) 出错,提示这样:

module.js:472
throw err;
^

Error: Cannot find module 'ws'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Temp\shadowsocks-heroku-master\local.
js:15:15)
at Object. (C:\Temp\shadowsocks-heroku-master\local.
js:322:4)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

请问该怎么办呢?谢谢。

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.