1.设置路由器
2.linux设置 git http proxy
note:ip为二级代理机的ip。
$ git config --global http.proxy http://192.168.0.101:808
$ git config --global https.proxy http://192.168.0.101:808
$ cat ~/.gitconfig
[http]
proxy = http://192.168.0.101:808
[https]
proxy = http://192.168.0.101:808
取消设置代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
3.在ccproxy上配置好代理,添加linux的ip
ps:ubuntu设置代理在network中network proxy中添加代理地址和端口。