tmytのらくがき

個人の日記レベルです

United Airlinesの機内Wifiをであそんでます

いまGoogle I/O 2016に参加してその帰りの飛行機の中です。United Airlinesの機内Wifiがつかえたのでせっかくだからいろいろ試してみました。

このエントリを書いた時点でこのあたりにいます。

f:id:tmyt:20160522065248p:plain

まず、United_Wi-FiというSSIDに接続します。すると、172.19.248.0/23なIPが割り当てられます。まぁ乗客が300人程度なので512個あれば足りるはずですね。

とりあえずDNSひいてみたかんじ。

$ nslookup google.com
Non-authoritative answer:
Server:  ns.unitedwifi.com
Address:  172.19.248.1

DNS request timed out.
    timeout was 2 seconds.
Name:    google.com
Address:  172.217.3.14

$ nslookup twitter.com
Non-authoritative answer:
Server:  ns.unitedwifi.com
Address:  172.19.248.1

Name:    twitter.com
Addresses:  199.16.156.70
          199.16.156.6
          199.16.156.102
          199.16.156.230

正しい結果が得られるようです。なるほど。

Webページをリクエストしてみると、全部に対して302 foundが得られるみたいです。

$ curl google.com -v
* Rebuilt URL to: google.com/
* timeout on name lookup is not supported
*   Trying 172.217.3.14...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to google.com (172.217.3.14) port 80 (#0)
> GET / HTTP/1.1
> Host: google.com
> User-Agent: curl/7.46.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: squid/3.4.6
< Mime-Version: 1.0
< Date: Sat, 21 May 2016 21:06:13 GMT
< Content-Type: text/html
< Content-Length: 0
< Location: http://www.unitedwifi.com
< X-Squid-Error: 403 Access Denied
< X-Cache: MISS from bc01
< Via: 1.1 bc01 (squid/3.4.6)
< Connection: close
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0

$ curl twitter.com -v
* Rebuilt URL to: twitter.com/
* timeout on name lookup is not supported
*   Trying 199.16.156.70...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0* Connected to twitter.com (199.16.156.70) port 80 (#0)
> GET / HTTP/1.1
> Host: twitter.com
> User-Agent: curl/7.46.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: squid/3.4.6
< Mime-Version: 1.0
< Date: Sat, 21 May 2016 21:07:31 GMT
< Content-Type: text/html
< Content-Length: 0
< Location: http://www.unitedwifi.com
< X-Squid-Error: 403 Access Denied
< X-Cache: MISS from bc01
< Via: 1.1 bc01 (squid/3.4.6)
< Connection: close
<
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
* Closing connection 0

機内のゲートウェイまでのPINGはまぁふつうぐらい

C:\>ping 172.19.248.1

Pinging 172.19.248.1 with 32 bytes of data:
Reply from 172.19.248.1: bytes=32 time=8ms TTL=64
Reply from 172.19.248.1: bytes=32 time=12ms TTL=64
Reply from 172.19.248.1: bytes=32 time=6ms TTL=64
Reply from 172.19.248.1: bytes=32 time=16ms TTL=64

Ping statistics for 172.19.248.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 16ms, Average = 10ms

302 Foundで示されているURLへアクセスすると20ドル払えといわれます。

まぁせっかくなので払うとすべてのURLに302 Foundを返すあれがなくなってこうなりました。

$ curl twitter.com -v
* Rebuilt URL to: twitter.com/
* timeout on name lookup is not supported
*   Trying 199.16.156.38...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0* Connected to twitter.com (199.16.156.38) port 80 (#0)
> GET / HTTP/1.1
> Host: twitter.com
> User-Agent: curl/7.46.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< content-length: 0
< date: Sat, 21 May 2016 21:12:52 GMT
< location: https://twitter.com/
< server: tsa_b
< x-connection-hash: 8cf7ac5f78c055ca55106e70cb0b3426
< x-response-time: 3
< Connection: Keep-Alive
< Set-Cookie: guest_id=v1%3A146386517242165290; Domain=.twitter.com; Path=/; Expires=Mon, 21-May-2018 21:12:52 UTC
<
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
* Connection #0 to host twitter.com left intact

衛星経由なのでPINGはかなり遅め。まぁしかたない。

>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Request timed out.
Reply from 8.8.8.8: bytes=32 time=745ms TTL=51
Reply from 8.8.8.8: bytes=32 time=799ms TTL=51
Reply from 8.8.8.8: bytes=32 time=921ms TTL=51

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 745ms, Maximum = 921ms, Average = 821ms

速度は…まぁTwitterぐらいならできるんじゃないですかね

f:id:tmyt:20160522065122p:plain