我的 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 位址。和其他平台有什麼差別嗎?