{"action":"created","issue":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/695","repository_url":"https://api.github.com/repos/shadowsocks/shadowsocks","labels_url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/695/comments","events_url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/695/events","html_url":"https://github.com/shadowsocks/shadowsocks/issues/695","id":195702119,"number":695,"title":"给shadowsocks添加中继功能","user":{"login":"wobushizhanghua","id":7688914,"avatar_url":"https://avatars.githubusercontent.com/u/7688914?v=3","gravatar_id":"","url":"https://api.github.com/users/wobushizhanghua","html_url":"https://github.com/wobushizhanghua","followers_url":"https://api.github.com/users/wobushizhanghua/followers","following_url":"https://api.github.com/users/wobushizhanghua/following{/other_user}","gists_url":"https://api.github.com/users/wobushizhanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/wobushizhanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobushizhanghua/subscriptions","organizations_url":"https://api.github.com/users/wobushizhanghua/orgs","repos_url":"https://api.github.com/users/wobushizhanghua/repos","events_url":"https://api.github.com/users/wobushizhanghua/events{/privacy}","received_events_url":"https://api.github.com/users/wobushizhanghua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-15T02:37:54Z","updated_at":"2016-12-15T06:15:17Z","closed_at":null,"body":"# 0x00 \r\n所谓中继功能，就是在sslocal 通过一个或者多个中继访问 ssserver，使用场景例如在阿里云上部署一个中继，本地通过阿里云在访问墙外ssserver\r\n\r\n# 0x01\r\n中继除了优化路由，提升访问速度以外，更重要的还能更好隐藏ip，比如你本地连墙外ip，到微博发了一个贴，结果还是被查到了ip，这个是因为墙可以保存进出配对记录。首先微博查到墙外ip，在通过此刻谁连接了墙外ip，获知你的墙内ip， 如果墙外做一次中继则不会发生。\r\n\r\n# 0x02\r\nshadowsocks原本做中继的方式是通过iptables 或者第三方转发软件，这里我给shadowsocks的local.py添加一个-r 功能，表明它是一个中继节点，它原封不动的把下游请求，转发到上游，上游可以是一个ssserver，或者另一个中继，上下游的参数设置方式和原本的一样\r\n````\r\npython local.py -b 0.0.0.0 -l localport -s your_server -p your_server_port -k your_password -r\r\n````\r\n\r\n# 0x03\r\n代码位置 https://github.com/wobushizhanghua/shadowsocks  develop分支 欢迎访问"},"comment":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/comments/267248097","html_url":"https://github.com/shadowsocks/shadowsocks/issues/695#issuecomment-267248097","issue_url":"https://api.github.com/repos/shadowsocks/shadowsocks/issues/695","id":267248097,"user":{"login":"wobushizhanghua","id":7688914,"avatar_url":"https://avatars.githubusercontent.com/u/7688914?v=3","gravatar_id":"","url":"https://api.github.com/users/wobushizhanghua","html_url":"https://github.com/wobushizhanghua","followers_url":"https://api.github.com/users/wobushizhanghua/followers","following_url":"https://api.github.com/users/wobushizhanghua/following{/other_user}","gists_url":"https://api.github.com/users/wobushizhanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/wobushizhanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobushizhanghua/subscriptions","organizations_url":"https://api.github.com/users/wobushizhanghua/orgs","repos_url":"https://api.github.com/users/wobushizhanghua/repos","events_url":"https://api.github.com/users/wobushizhanghua/events{/privacy}","received_events_url":"https://api.github.com/users/wobushizhanghua/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T06:15:17Z","updated_at":"2016-12-15T06:15:17Z","body":"这是我之前根据自己需求给自己做的功能，中继节点用local.py 启动，-b -l 为中继监听ip（为0.0.0.0就好了）和中继监听端口，\r\n-s -p为墙外服务器ip和墙外服务器端口，-k参数就是目前本地连服务器的密码\r\n\r\n墙外服务器ssserver不用动\r\n自己本地电脑sslocal的远端服务器ip，端口修改成中继节点的ip和端口"}}
{"actor":{"display_login":"wobushizhanghua"}}