|
与在路由器上使用全局代理的区别是:这个代理软件使用的地方是只用chrome浏览器访问谷歌或者被墙的网站
首先需要有一台国外的服务器 国外的服务器可以选择搭建cow也可以选择搭建shawdowsocks也可以选择搭建其他代理服务器
我这里用的是国外的服务器搭建的shawdowsocks
先从github下载
https://github.com/cyfdecyf/cow
这个是安装cow的过程
[root@centos7-1708 cow-master]# ./install-cow.sh
Install cow binary to which directory (absolute path, defaults to current dir):
No installation directory given, assuming current directory
Downloading cow binary https://github.com/cyfdecyf/cow/ ... ow-linux64-0.9.8.gz to /tmp/cow.F6vfBb/cow.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 609 0 609 0 0 374 0 --:--:-- 0:00:01 --:--:-- 375
100 1886k 100 1886k 0 0 363k 0 0:00:05 0:00:05 --:--:-- 579k
Downloading sample config file to /root/.cow
Downloading https://raw.github.com/cyfdecyf/cow/0.9.8/doc/sample-config/rc to /root/.cow/rc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6200 100 6200 0 0 4254 0 0:00:01 0:00:01 --:--:-- 4254
Move /tmp/cow.F6vfBb/cow to /root/cow-master (will run sudo if no write permission to install directory)
Installation finished.
Please edit /root/.cow/rc according to your own settings.
After that, execute "cow &" to start cow and run in background.
安装完毕以后
vi /root/.cow/rc
把监听地址改为LAN口的IP地址
alwaysProxy = true
所有连接都走二级代理
proxy = ss://加密方式:密码@国外的IP:端口
添加二级代理
然后保存退出
然后新建一个窗口
screen -R daili
./cow
这个时候就会提示一个代理方式和IP还有地址
复制这些信息
ctrl+a+d返回主窗口(我习惯用screen命令 感觉还是这个命令好用,我不喜欢用&来实现后台模式)
然后打开chrome浏览器的switchyomega扩展
新建情景模式 选代理
然后代理协选HTTP 代理服务器填192.168.11.22 端口填7777
然后再新建一个情景模式选自由切换
默认模式是直接连接
勾选规则列表规则 情景模式选择刚才新建的模式
规则列表设置选择autoproxy
规则列表网址填htt删ps://r删aw.g删ithubusercontent.c删om/g删fwlist/gf删wlist/master/gf删wlist.txt
然后点立即更新情景模式
然后保存退出
最后这个代理扩展选择自动切换模式就行了
|
|