我的 Debian 笔记本电脑无法通过热点访问互联网。第一次连接时,我很确定在验证身份后可以上网。我的手机连接到同一个 wifi 时没有问题。
现在,尝试访问 http 页面会重定向到热点的登录页面(显示我已登录)。访问 https 网站会导致 Chromium 中出现 ERR_SSL_PROTOCOL_ERROR,而 Firefox 中会出现 SSL_ERROR_RX_RECORD_TOO_LONG。
更有趣的是,我使用该命令测试了 DNS host
,并且它运行完美。
$ host google.com
google.com has address 172.217.21.78
google.com has IPv6 address 2a00:1450:4002:801::200e
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
然后我使用 curl:
$ curl -v http://google.com
* Rebuilt URL to: http://google.com/
* Trying 172.217.21.78...
* TCP_NODELAY set
* Connected to google.com (172.217.21.78) port 80 (#0)
> GET / HTTP/1.1
> Host: google.com
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: squid/3.5.28
< Date: Sun, 02 Feb 2020 22:08:43 GMT
< Content-Length: 0
< Location: https://hotspot.internet-for-guests.com/logon/cgi/index.cgi?ctime=1580681323&userurl=%68%74%74%70%3A%2F%2F%67%6F%6F%67%6C%65%2E%63%6F%6D%2F
< X-Cache: MISS from hotspot.internet-for-guests.com
< X-Cache-Lookup: MISS from hotspot.internet-for-guests.com:8080
< Connection: keep-alive
<
* Curl_http_done: called premature == 0
* Connection #0 to host google.com left intact
$ curl -v https://google.com
* Rebuilt URL to: https://google.com/
* Trying 172.217.21.78...
* TCP_NODELAY set
* Connected to google.com (172.217.21.78) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
所以看起来热点认为我没有连接,而我却连接上了。这更像是热点的问题,它可能无法正确检测我的 MAC 地址。与其他平台有什么不同吗?