AWS でサービス / 地域ごとに利用されるグローバルアドレスについては AWS IP アドレスの範囲 で公開されています。 こちらの情報を元に「東京リージョンの EC2 で日本のアドレスが払い出される確率」を計算したところ、本日時点で 0.7028419% のようです (たぶん)。
AWS 全体のグローバルアドレスは下記を実行することにより、JSON 形式で表示することが出来ます。
curl --silent https://ip-ranges.amazonaws.com/ip-ranges.json | python -m json.tool
東京リージョン (ap-northeast-1
) 且つ、EC2 のアドレスは以下で表示可能です。
curl --silent --remote-name https://ip-ranges.amazonaws.com/ip-ranges.json
jq '.prefixes[] | select(.region=="ap-northeast-1" and .service=="EC2")' < ip-ranges.json
具体的には以下の結果になりました。
# jq '.prefixes[] | select(.region=="ap-northeast-1" and .service=="EC2")' < ip-ranges.json
{
"ip_prefix": "52.194.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.168.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.238.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.250.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.92.0.0/17",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.183.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "176.32.64.0/19",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.196.0.0/14",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "175.41.192.0/18",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.150.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "99.77.139.0/24",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.199.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "176.34.32.0/19",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.248.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.182.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "13.112.0.0/14",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.68.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.94.248.80/28",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.95.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.95.243.0/24",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "3.112.0.0/14",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.178.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.192.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "13.230.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.178.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.180.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "52.95.255.48/28",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "103.4.8.0/21",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.179.0.0/16",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "46.51.224.0/19",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "15.177.79.0/24",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "54.64.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "176.34.0.0/19",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "18.176.0.0/15",
"region": "ap-northeast-1",
"service": "EC2"
}
{
"ip_prefix": "15.193.1.0/24",
"region": "ap-northeast-1",
"service": "EC2"
}
これを表にまとめると以下になりました。
No. | アドレス範囲 | マスク長 | 国 | レジストラ | アドレス数 | アドレス数 (日本以外) | アドレス数 (日本のみ) |
---|---|---|---|---|---|---|---|
1 | 52.194.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
2 | 54.168.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
3 | 54.238.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
4 | 54.250.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
5 | 54.92.0.0/17 | 17 | アメリカ合衆国 | ARIN | 32,768 | 32,768 | |
6 | 18.183.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
7 | 176.32.64.0/19 | 19 | アイルランド | RIPENCC | 8,192 | 8,192 | |
8 | 52.196.0.0/14 | 14 | アメリカ合衆国 | ARIN | 262,144 | 262,144 | |
9 | 175.41.192.0/18 | 18 | 日本 | APNIC | 16,384 | 16,384 | |
10 | 54.150.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
11 | 99.77.139.0/24 | 24 | アメリカ合衆国 | ARIN | 256 | 256 | |
12 | 54.199.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
13 | 176.34.32.0/19 | 19 | アイルランド | RIPENCC | 8,192 | 8,192 | |
14 | 54.248.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
15 | 18.182.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
16 | 13.112.0.0/14 | 14 | アメリカ合衆国 | ARIN | 262,144 | 262,144 | |
17 | 52.68.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
18 | 52.94.248.80/28 | 28 | アメリカ合衆国 | ARIN | 16 | 16 | |
19 | 54.95.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
20 | 52.95.243.0/24 | 24 | アメリカ合衆国 | ARIN | 256 | 256 | |
21 | 3.112.0.0/14 | 14 | アメリカ合衆国 | ARIN | 262,144 | 262,144 | |
22 | 18.178.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
23 | 52.192.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
24 | 13.230.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
25 | 54.178.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
26 | 18.180.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
27 | 52.95.255.48/28 | 28 | アメリカ合衆国 | ARIN | 16 | 16 | |
28 | 103.4.8.0/21 | 21 | 日本 | APNIC | 2,048 | 2,048 | |
29 | 18.179.0.0/16 | 16 | アメリカ合衆国 | ARIN | 65,536 | 65,536 | |
30 | 46.51.224.0/19 | 19 | アイルランド | RIPENCC | 8,192 | 8,192 | |
31 | 15.177.79.0/24 | 24 | アメリカ合衆国 | ARIN | 256 | 256 | |
32 | 54.64.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
33 | 176.34.0.0/19 | 19 | アイルランド | RIPENCC | 8,192 | 8,192 | |
34 | 18.176.0.0/15 | 15 | アメリカ合衆国 | ARIN | 131,072 | 131,072 | |
35 | 15.193.1.0/24 | 24 | アメリカ合衆国 | ARIN | 256 | 256 | |
合計 | 2,640,928 | 2,622,496 | 18,432 |
「日本のアドレスが払い出される確率」は「18,432 / 2,622,496 = 0.007028419」なので、約 0.7% のようです。
コメント