|
|
第1行: |
第1行: |
− | =pre=
| + | #重定向 [[Chrome firefox配置SwitchyOmega翻墙]] |
− | 搭建shadowsocks服务器端 详见[[Shadowsocks安装与配置]]
| |
− | | |
− | =client=
| |
− | | |
− | ==linux(debian pc) or freebsd12 ==
| |
− | <pre>
| |
− | | |
− | #个人电脑 kali201930用这个加crontab 就可以了 sudo apt install shadowsocks-libev 要看官网
| |
− | sudo apt install shadowsocks-libev
| |
− | ss-local -s linuxsa.org -p 443 -k "pass" -l 7070 -t 600 -m aes-256-cfb
| |
− | | |
− | | |
− | apt install shadowsocks
| |
− | sslocal -s linuxsa.org -p 443 -k "pass" -l 7070 -t 600 -m aes-256-cfb #新的用这个
| |
− | | |
− | | |
− | | |
− | | |
− | #本地apt shadowsock and then ok 20190728 因为我本地的端口是7070
| |
− | chromium --proxy-server="http=socks5://127.0.0.1:7070"
| |
− | /opt/google/chrome/chrome --proxy-server="https=socks5://127.0.0.1:7070"
| |
− | | |
− | pip 安装 2019后尽量不用这种了
| |
− | sudo apt-get install python-pip
| |
− | 安装shadowsocks:
| |
− | sudo pip install shadowsocks
| |
− | 新建shadowsocks配置文件shadowsocks.json:
| |
− | {
| |
− | "server": "xxx.xxx.xxx.xxx",
| |
− | "server_port": xxxx,
| |
− | "local_port": 1080,
| |
− | "password": "xxxxxxx",
| |
− | "timeout": 600,
| |
− | "method": "aes-256-cfb"
| |
− | }
| |
− | | |
− | eg
| |
− | {
| |
− | "server":"linuxsa.org",
| |
− | "server_port":443,
| |
− | "local_port":1080,
| |
− | "password":"laipass",
| |
− | "timeout":600,
| |
− | "method":"aes-256-cfb"
| |
− | }
| |
− | | |
− | #启动 | |
− | sslocal -c /home/evan/shadowsocks.json -d start
| |
− | | |
− | | |
− | | |
− | apt install shadowsocks
| |
− | evan@elite:/etc/shadowsocks$ cat config.json
| |
− | {
| |
− | "server":"ss.linuxsa.org",
| |
− | "server_port":8388,
| |
− | "local_port":1080,
| |
− | "password":"lai2240",
| |
− | "timeout":600,
| |
− | "method":"aes-256-cfb",
| |
− | "local_address":"127.0.0.1",
| |
− | "fast_open":false,
| |
− | "tunnel_remote":"8.8.8.8",
| |
− | "dns_server":["8.8.8.8", "8.8.4.4"],
| |
− | "tunnel_remote_port":53,
| |
− | "tunnel_port":53,
| |
− | "libopenssl":"C:\\Program Files\\Git\\mingw64\\bin\\libeay32.dll",
| |
− | "libsodium":"/usr/local/lib/libsodium.so",
| |
− | "libmbedtls":"/usr/local/lib/libmbedcrypto.2.4.0.dylib"
| |
− | }
| |
− | | |
− | sudo systemctl enable shadowsocks
| |
− | </pre>
| |
− | | |
− | == linux 服务器 ==
| |
− | [[ Ubuntu利用shadowsocks终端翻墙 ]]
| |
− | | |
− | ==windows==
| |
− | ===下载shadowsocks客户端===
| |
− | [https://github.com/shadowsocks/shadowsocks-windows/releases/download/4.0.8/Shadowsocks-4.0.8.zip 下载shadowsocks客户端软件] | |
− | ===配置shadowsocks客户端===
| |
− | <gallery>
| |
− | ss.png
| |
− | </gallery>
| |
− | | |
− | ==浏览器==
| |
− | ===chrome2019===
| |
− | <pre>1.安装chrome浏览器翻墙插件 要先翻墙 再play.google
| |
− | | |
− | #本地apt shadowsock and then ok 20190728 freebsd12上也是 因为我本地的端口是7070
| |
− | | |
− | /opt/google/chrome/chrome --proxy-server="https=socks5://127.0.0.1:7070"
| |
− | | |
− | chromium --proxy-server="http=socks5://127.0.0.1:1080"
| |
− | | |
− | 然后直接 同步帐号 就什么都有了啦 不用再安装什么插件 哈哈 换新电脑这样就行了
| |
− | </pre>
| |
− | | |
− | chrome 同步
| |
− | | |
− | https://chrome.google.com/sync?otzr=1
| |
− | | |
− | https://www.google.com/sync/index.html
| |
− | | |
− | ===firefox===
| |
− | [https://github.com/FelisCatus/SwitchyOmega/releases 打开页面直接双击proxy_switchyomega-2.5.10-an.fx.xpi] | |
− | | |
− | | |
− | | |
− | | |
− | ===配置SwitchyOmeg===
| |
− | <gallery>
| |
− | sw.png
| |
− | </gallery>
| |
− | | |
− | =使用问题=
| |
− | 一开始不能自动翻墙 我用几个 proxy,然后添加对URL的规则就行了
| |
− | | |
− | 要有个 规则列表规则 (按照规则列表匹配请求) proxy on auto switch 不然老是要手工才会FQ
| |
− | | |
− | == chrome 突然帐号同步不成功 登录不了gmail ==
| |
− | | |
− | SwitchyOmega 自动切换模式下 Chrome 无法登陆谷歌账户
| |
− | | |
− | 添加规则 之后便可正常登陆
| |
− | *.googleapis.com +proxy
| |
− | | |
− | https://github.com/gfwlist/gfwlist/issues/1056
| |
− | | |
− | =参考=
| |
− | [http://blog.linuxchina.net/?p=845 ssh+chrome翻墙 from blog]
| |
− | [[category:生活与情感]] [[category:linux]] [[category:ops]]
| |