![Não é possível acessar a Internet de um ponto de acesso público](https://rvso.com/image/1615284/N%C3%A3o%20%C3%A9%20poss%C3%ADvel%20acessar%20a%20Internet%20de%20um%20ponto%20de%20acesso%20p%C3%BAblico.png)
Meu laptop Debian tem problemas para acessar a Internet a partir de um ponto de acesso. A primeira vez que me conectei, tenho quase certeza de que tinha internet após a autenticação. Meu telefone está conectado no mesmo wifi sem problemas.
Agora, tentar acessar uma página http redireciona para a página de login do hotspot (que diz que estou logado). Acessar um site https resulta em ERR_SSL_PROTOCOL_ERROR no Chromium e SSL_ERROR_RX_RECORD_TOO_LONG no Firefox.
O mais interessante é que testei o DNS com o comando host
e funciona perfeitamente.
$ 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.
Eu então usei 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
Parece que o ponto de acesso pensa que não estou conectado enquanto estou. Provavelmente é mais um problema do hotspot que não detecta corretamente meu endereço MAC. Existe alguma diferença com outras plataformas?