TCP relay w/ SOCKS5, using Node.js
Very few lines of code!
这软件当然是为了翻墙,毕竟党是领导一切的,法律也要在党的范围内行使权力
- 按照下面Installation的指示,在本地和VPS上都安装quietsocks
- 测试安装是否成功:在本地运行
node server.js
,然后把浏览器SOCKS5代理指向localhost:8118
,看看能否访问百度。按回车可以退出。 - 在VPS上运行
node server.js --server
,同时VPS对外要开放8338端口 - 在本地运行
node server.js --connect {VPS的地址}
,此处地址可以是域名或IP - 按个人需求修改 settings.js, 通过人民群众的无穷创造力让GFW摸不着头脑
Your Browser(Socks5Client) -> localhost:8118(quietsocks client) -> THE WALL -> remote:8338(quietsocks server) -> remote:8228(Socks5Server) -> Internet
Tweak the buffer_encode
and buffer_decode
function in settings.js to implement your own byte mapping function. Please make sure decode(encode(x)) = x where x is a byte.
Install Node.js for your OS, then run the following command:
$ git clone https://github.com/ctmakro/quietsocks
$ cd quietsocks
$ npm install
- install quietsocks on both client and server.
- run
node server.js
with no options to test functionality of both client and server functionalities on current machine. Set your browser's SOCKS5 proxy tolocalhost:8118
, then visit a random site. - run
node server.js --server
on server side. - run
node server.js --connect {address_of_server}
on client side. address_of_server may be either a domain-name or an IP address. - modify settings.js as needed.
removed according to regulation.