aws公共ip段-中国区

sam 2022年03月16日 570次浏览

使用官网发布的ip范围文件,结合jq工具提取ip地址段

1. ip range文件下载地址

wget https://ip-ranges.amazonaws.com/ip-ranges.json

1. 北京区

1.1 提取方式

jq '.prefixes[] | select(.region=="cn-north-1") | .ip_prefix' < ip-ranges.json

1.2 ip地址段

71.131.192.0/18
54.222.58.0/28
54.239.0.144/28
52.80.0.0/16
54.222.0.0/19
15.230.141.0/24
54.222.58.48/28
43.196.0.0/15
140.179.0.0/16
54.222.80.0/21
54.223.0.0/16
15.230.49.0/24
150.222.89.0/24
54.222.32.0/22
52.81.0.0/16
54.222.52.0/22
54.222.128.0/17
150.222.88.0/24
54.222.71.0/24
43.195.0.0/16
54.222.59.0/24
71.137.0.0/22
71.137.8.0/22
71.132.0.0/18
54.222.76.0/22
54.222.66.0/23
54.222.57.0/24
54.222.70.0/24
71.136.64.0/18
54.222.64.0/23
71.137.4.0/24
54.222.36.0/22
52.95.255.144/28
54.222.48.0/22
15.230.41.0/24
54.222.68.0/23
107.176.0.0/15
54.222.58.32/28
54.222.52.0/22
71.137.8.0/22
54.222.48.0/22
54.222.57.0/24
71.131.192.0/18
52.80.0.0/16
140.179.0.0/16
54.223.0.0/16
54.222.32.0/22
52.81.0.0/16
54.222.52.0/22
54.222.128.0/17
54.222.59.0/24
71.132.0.0/18
71.136.64.0/18
54.222.64.0/23
71.137.4.0/24
54.222.36.0/22
52.95.255.144/28
107.176.0.0/15
54.222.58.32/28
140.179.1.64/27
140.179.1.96/27
140.179.113.248/29
140.179.15.0/26
140.179.15.64/26
140.179.58.88/29
140.179.79.160/27
140.179.79.192/27
140.179.79.244/30
52.80.197.0/25
52.80.197.128/25
52.80.198.0/25
52.80.198.136/29
52.81.124.0/23
52.81.135.128/25
52.81.137.0/24
52.81.167.128/27
52.81.167.192/26
52.81.216.0/23
52.81.232.0/26
71.131.196.128/26

2. 宁夏区

2.1 提取方式

jq '.prefixes[] | select(.region=="cn-northwest-1") | .ip_prefix' < ip-ranges.json

2.2 ip地址段

52.82.169.16/28
52.82.169.0/28
52.83.0.0/16
52.93.127.104/32
43.192.0.0/15
69.235.128.0/18
52.93.127.96/32
52.93.127.93/32
69.231.128.0/18
69.230.192.0/18
52.93.127.99/32
43.194.0.0/16
52.82.168.0/24
52.82.176.0/22
52.93.127.105/32
52.82.184.0/23
52.82.160.0/22
52.93.127.97/32
52.93.127.101/32
68.79.0.0/18
52.93.127.94/32
52.93.127.92/32
52.93.127.95/32
52.93.127.100/32
52.82.180.0/22
161.189.0.0/16
52.93.127.102/32
52.82.0.0/17
52.82.187.0/24
54.239.0.176/28
69.234.192.0/18
52.93.127.98/32
52.82.164.0/22
52.93.127.103/32
52.82.192.0/18
52.82.188.0/22
52.82.164.0/22
52.82.188.0/22
52.82.187.0/24
52.82.169.0/28
52.83.0.0/16
69.235.128.0/18
69.231.128.0/18
69.230.192.0/18
52.82.168.0/24
52.82.176.0/22
52.82.184.0/23
68.79.0.0/18
52.82.180.0/22
161.189.0.0/16
52.82.0.0/17
69.234.192.0/18
52.82.164.0/22
161.189.148.0/23
161.189.66.128/26
161.189.66.192/26
52.82.1.0/29
52.82.127.0/24
52.82.92.0/23
52.83.25.128/27
52.83.25.160/27
52.83.26.0/26
52.83.26.64/26
52.83.34.128/25
52.83.35.0/25
52.83.35.128/25
52.83.5.0/26
68.79.2.244/30
68.79.2.248/29
69.230.219.0/24
69.234.197.192/26
69.234.197.72/29