1
newboy1 Aug 24, 2022
ping 不通是正常的,一般很少有代理 icmp
|
2
Coder89757 Aug 24, 2022
```bash
# 终端全局开启和关闭代理(端口啥的自己改下) alias goproxy='echo "Http(s) proxy ON!😆"; export ALL_PROXY="socks5://127.0.0.1:58001"; export http_proxy="http://127.0.0.1:58002"; export HTTP_PROXY="http://127.0.0.1:58002"; export https_proxy="http://127.0.0.1:58002"; export HTTPS_PROXY="http://127.0.0.1:58002"' alias deproxy='echo "Http(s) proxy OFF😔"; unset ALL_PROXY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY' ``` |
3
villivateur Aug 24, 2022
你看下你是什么代理,如果是 http 代理的话,不支持 ssh 方式传输的
|
4
Coder89757 Aug 24, 2022
另外 git 本身是走 SSL 进行推拉的,试着通过 git config 强制降级为通过 https ,这样就可以走代理了
|
5
q474818917 Aug 24, 2022
一个 tcp ,一个 icmp 完全不同啊
|
6
Coder89757 Aug 24, 2022
git config --global url."https://".insteadOf git://
|
7
zliea Aug 24, 2022
可以用 tcping
|
8
deng1xia Aug 24, 2022
用 clash 的 tun 模式呗,所有流量都会走它,包括终端
|
9
ha2ha OP @Coder89757 git config --global http.proxy 'http://127.0.0.1:7890'
git config --global https.proxy 'http://127.0.0.1:7890'我是这样设置的代理的,强制降级为通过 https ,有点没明白 |
11
ha2ha OP |
12
dcsuibian Aug 24, 2022 via Android
ss 不是 vpn ,是应用层代理。
ping 是 icmp 协议,在网络架构中处于饺低 的 ip 层。一般管不了。 另外是需要在命令行中设置 http_proxy 和 https_proxy 环境变量。设置完后应该自动就会走了。 最靠谱的方法是看日志 |
13
HugoChao Aug 24, 2022
github 一直是 ping 不通的 用起来正常
|
14
fitme Aug 24, 2022
ping 不通很模糊,别人有可能禁 ping 呀,
|
15
Tink PRO ping 是 icmp
|
16
snoopygao Aug 25, 2022
tcp over tcp 和 all over tcp 的区别
|
17
nothingistrue Aug 25, 2022
@ha2ha #9 http.proxy 跟 https.proxy 没有区别的,git 只看后面地址的协议部分。http 代理是应用层且无加密的代理,限制非常大,基本没法用。要换成会话层的 Socks 代理才行,不过即使这样,有些安全性的东西,比如说令牌登录,也用不了。
|