我用 SNI Proxy 代理 Github 全站,不知道为什么过段时间就连不上,需要尝试多次才能连接,使用 telnet 连接端口也是这样。
但是浏览器访问完全没问题
wget 执行结果,尝试 8 次才成功,ping 200ms 左右。
--2017-09-17 13:31:43-- (try: 7) https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gz
Connecting to github.com (github.com)|0.0.0.0|:443... failed: Connection timed out.
Retrying.
--2017-09-17 13:31:53-- (try: 8) https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gz
Connecting to github.com (github.com)|0.0.0.0|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/11467667/1a550a0e-5105-11e4-85ca-664dbf315ccc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170917%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170917T053154Z&X-Amz-Expires=300&X-Amz-Signature=11ce79015455a653a1f6ef31ae39085eda008e43a6e06444e53bd638ddf6e574&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3D1.0.14.10.10.-release.tar.gz&response-content-type=application%2Foctet-stream [following]
配置文件
user nobody
resolver {
nameserver 8.8.8.8
mode ipv4_only
#mode ipv4_first
}
access_log {
filename /tmp/sniproxy-access.log
}
error_log {
filename /tmp/sniproxy-error.log
}
listen 0.0.0.0:443 {
proto tls
table https_hosts
}
table https_hosts {
# Github
(.*.|)github.com$ *
(.*.|)githubusercontent.com$ *
github(.*).s3.amazonaws.com$ *
}
连接超时时无日志,好像是根本没连上端口,但端口确实在监听。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.