ping 代理_macOS设置某个域名走代理

家里网络如下:

➜ ~ curl cip.cc

IP: 1.84.212.163

地址: 中国 陕西 咸阳

运营商: 电信

数据二: 陕西省西安市 | 电信

数据三:

URL: http://www.cip.cc/1.84.212.163

无论如何无法访问https://www.jianshu.com

但是ping 是OK的

2dd6e2975d4675de80a22c53fc1ccbc9.png

浏览器和命令行访问都是报:

➜ ~ curl -I https://www.jianshu.com

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.jianshu.com:443

幸好,自己本地起了sockets 代理:

如下操作:

➜  ~ curl -I https://www.jianshu.com --socks5-hostname 127.0.0.1:7070HTTP/2 200server: Tenginecontent-type: text/html; charset=utf-8date: Tue, 20 Oct 2020 07:48:55 GMTvary: Accept-Encodingx-frame-options: SAMEORIGINx-xss-protection: 1; mode=blockx-content-type-options: nosniffetag: W/"002fb68a370468b23dcf6790b0aa26bd"cache-control: max-age=0, private, must-revalidateset-cookie: locale=zh-CN; path=/x-request-id: 82b04bda-1861-448b-a75b-d40961520d0fx-runtime: 0.007925strict-transport-security: max-age=31536000; includeSubDomains; preloadvia: cache40.l2nu20-2[70,0], cache5.us8[739,0]timing-allow-origin: *eagleid: 2ff6199916031801350464162e

所以配置Safari的代理,其实是配置的网络的代理

dabfd77555b372fe6a06cfb5d4237f33.png

关于sockets代理如下配置的:

/usr/local/bin/autossh -M 12345 -qTfnN -D 7070 xule@IP地址

再访问www.jianshu.com就OK了

8c521f20db0fe7408fcd4a757c70d93c.png

暂时解决了。后期看下什么原因?

因为虚拟机里面的Centos主机是可以直接请求到的。同局域网的IOS设备也无法访问。难道是

简书的Tenginx做了特殊设置?歧视?

浏览器报错:

Secure Connection Failed

An error occurred during a connection to www.jianshu.com. PR_CONNECT_RESET_ERROR

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

Please contact the website owners to inform them of this problem.

命令行下典型报错

➜ ~ curl -I https://www.jianshu.com/p/c5fa45312f5b

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.jianshu.com:443

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值