![공용 핫스팟에서 인터넷에 접속할 수 없습니다](https://rvso.com/image/1615284/%EA%B3%B5%EC%9A%A9%20%ED%95%AB%EC%8A%A4%ED%8C%9F%EC%97%90%EC%84%9C%20%EC%9D%B8%ED%84%B0%EB%84%B7%EC%97%90%20%EC%A0%91%EC%86%8D%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.png)
내 데비안 노트북이 핫스팟에서 인터넷에 액세스하는 데 문제가 있습니다. 처음 연결했을 때 인증을 한 후에는 확실히 인터넷에 연결된 것 같았습니다. 내 휴대전화는 문제 없이 동일한 Wi-Fi에 연결되어 있습니다.
이제 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 -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 주소를 올바르게 감지하지 못하는 핫스팟의 문제일 가능성이 높습니다. 다른 플랫폼과 차이점이 있나요?