├── .github └── workflows │ └── main.yml ├── .gitignore ├── README.md ├── ranges-aws.txt ├── ranges-azure-dod.txt ├── ranges-azure.txt ├── ranges-cidra.txt └── run.sh /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | schedule: 5 | - cron: "0 13 * * *" 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@master 12 | with: 13 | token: ${{ secrets.GITHUB_TOKEN }} 14 | 15 | # Runs a single command using the runners shell 16 | - name: Run update 17 | run: | 18 | ./run.sh 19 | 20 | # Runs a set of commands using the runners shell 21 | - name: Commit 22 | run: | 23 | git config --local user.email "action@github.com" 24 | git config --local user.name "GitHub Action" 25 | git add ranges* 26 | git diff-index --quiet HEAD || git commit -m "Update ranges" -a && git push "https://daehee:${{ secrets.GITHUB_TOKEN }}@github.com/daehee/govcloud.git" HEAD:master --follow-tags 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | data/* 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # govcloud 2 | -------------------------------------------------------------------------------- /ranges-aws.txt: -------------------------------------------------------------------------------- 1 | 108.175.48.0/22 2 | 108.175.52.0/22 3 | 108.175.56.0/22 4 | 108.175.60.0/22 5 | 136.18.0.0/23 6 | 15.200.0.0/16 7 | 15.200.141.0/25 8 | 15.200.141.128/25 9 | 15.200.150.0/23 10 | 15.200.176.0/25 11 | 15.200.176.128/28 12 | 15.200.176.192/26 13 | 15.200.27.96/27 14 | 15.200.28.0/27 15 | 15.200.28.240/28 16 | 15.200.28.32/27 17 | 15.200.28.80/30 18 | 15.200.28.88/29 19 | 15.205.0.0/16 20 | 15.205.2.192/26 21 | 15.205.82.0/23 22 | 15.205.84.0/23 23 | 16.64.0.0/17 24 | 16.65.0.0/16 25 | 16.66.0.0/16 26 | 16.67.0.0/16 27 | 160.1.0.0/16 28 | 160.1.128.0/24 29 | 18.252.0.0/16 30 | 18.252.126.0/25 31 | 18.252.144.0/25 32 | 18.252.144.128/25 33 | 18.252.145.0/25 34 | 18.252.145.156/30 35 | 18.252.145.160/29 36 | 18.252.145.168/29 37 | 18.252.145.192/28 38 | 18.252.145.208/28 39 | 18.252.165.0/26 40 | 18.252.165.140/30 41 | 18.252.4.0/30 42 | 18.252.4.16/29 43 | 18.252.4.64/28 44 | 18.252.4.80/28 45 | 18.252.4.96/28 46 | 18.252.56.0/23 47 | 18.252.58.0/23 48 | 18.253.0.0/16 49 | 18.253.138.0/29 50 | 18.253.138.16/29 51 | 18.253.138.24/29 52 | 18.253.138.32/29 53 | 18.253.138.40/29 54 | 18.253.138.48/29 55 | 18.253.138.56/29 56 | 18.253.138.64/29 57 | 18.253.138.72/29 58 | 18.253.138.8/29 59 | 18.253.138.80/29 60 | 18.253.138.88/29 61 | 18.253.186.0/24 62 | 18.253.204.0/27 63 | 18.253.204.32/27 64 | 18.253.204.64/27 65 | 18.254.0.0/16 66 | 18.254.140.0/22 67 | 18.254.148.0/22 68 | 18.254.23.64/26 69 | 18.254.61.128/26 70 | 18.254.68.0/23 71 | 18.96.8.0/21 72 | 18.99.112.0/20 73 | 18.99.240.0/20 74 | 182.28.0.0/16 75 | 182.29.0.0/16 76 | 182.30.0.0/16 77 | 182.30.13.192/26 78 | 182.30.157.0/26 79 | 182.30.85.0/26 80 | 182.30.85.128/25 81 | 205.251.236.0/22 82 | 3.30.0.0/15 83 | 3.30.129.0/24 84 | 3.30.130.0/23 85 | 3.30.204.0/24 86 | 3.30.40.84/30 87 | 3.30.98.128/26 88 | 3.30.98.64/26 89 | 3.32.0.0/16 90 | 3.32.139.0/24 91 | 3.32.190.0/25 92 | 3.32.190.128/27 93 | 3.32.190.160/27 94 | 3.32.190.244/30 95 | 3.32.190.248/29 96 | 3.32.249.128/25 97 | 3.32.43.160/27 98 | 3.4.16.0/21 99 | 3.4.24.0/21 100 | 35.71.115.0/24 101 | 35.71.116.0/24 102 | 52.119.208.0/23 103 | 52.222.0.0/17 104 | 52.46.176.0/22 105 | 52.46.224.0/20 106 | 52.46.96.0/19 107 | 52.61.0.0/16 108 | 52.61.193.0/24 109 | 52.61.40.104/29 110 | 52.61.40.16/28 111 | 52.61.40.32/28 112 | 52.61.40.48/29 113 | 52.61.40.56/29 114 | 52.61.40.64/29 115 | 52.61.40.72/29 116 | 52.61.40.80/29 117 | 52.94.152.184/32 118 | 52.94.152.185/32 119 | 52.94.152.186/32 120 | 52.94.152.187/32 121 | 52.94.152.188/32 122 | 52.94.152.189/32 123 | 52.94.152.190/32 124 | 52.94.152.191/32 125 | 52.94.152.192/32 126 | 52.94.152.193/32 127 | 52.94.152.194/32 128 | 52.94.152.195/32 129 | 52.94.198.32/28 130 | 52.94.22.0/24 131 | 52.94.248.224/28 132 | 52.94.249.112/28 133 | 52.94.9.0/24 134 | 52.95.100.0/22 135 | 54.239.0.128/28 136 | 54.239.1.64/28 137 | 56.136.0.0/16 138 | 56.136.0.192/26 139 | 56.136.121.0/25 140 | 56.137.0.0/16 141 | 56.138.0.0/16 142 | 56.139.0.0/16 143 | 75.79.0.0/16 144 | 76.223.168.0/24 145 | 96.127.0.0/17 146 | 99.151.96.0/21 147 | 99.77.183.0/24 148 | 99.77.184.0/24 149 | -------------------------------------------------------------------------------- /ranges-azure-dod.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daehee/govcloud/4cb482a7a86cdfc9078f1de5695f1dd69fdc9528/ranges-azure-dod.txt -------------------------------------------------------------------------------- /ranges-azure.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daehee/govcloud/4cb482a7a86cdfc9078f1de5695f1dd69fdc9528/ranges-azure.txt -------------------------------------------------------------------------------- /ranges-cidra.txt: -------------------------------------------------------------------------------- 1 | 104.196.0.0/14 2 | 107.20.0.0/14 3 | 13.224.8.0/21 4 | 13.227.72.0/21 5 | 13.64.0.0/11 6 | 140.16.114.0/24 7 | 140.16.12.0/22 8 | 140.16.132.0/24 9 | 140.16.144.0/23 10 | 140.16.151.0/24 11 | 140.16.16.0/24 12 | 140.16.202.0/23 13 | 140.16.240.0/21 14 | 140.16.24.0/23 15 | 140.16.248.0/22 16 | 140.16.56.0/24 17 | 140.16.80.0/20 18 | 140.16.96.0/22 19 | 140.17.0.0/20 20 | 140.17.32.0/23 21 | 140.18.15.0/24 22 | 140.18.16.0/20 23 | 140.18.2.0/24 24 | 140.18.248.0/23 25 | 140.18.4.0/23 26 | 140.18.48.0/21 27 | 140.18.68.0/23 28 | 140.18.8.0/24 29 | 140.18.9.0/24 30 | 140.18.91.0/24 31 | 143.204.128.0/21 32 | 15.188.0.0/16 33 | 15.200.0.0/16 34 | 160.1.0.0/16 35 | 18.208.0.0/13 36 | 18.216.0.0/13 37 | 18.252.0.0/15 38 | 184.73.0.0/16 39 | 3.208.0.0/13 40 | 3.224.0.0/12 41 | 34.192.0.0/12 42 | 34.208.0.0/12 43 | 34.224.0.0/12 44 | 35.153.0.0/16 45 | 35.160.0.0/13 46 | 35.168.0.0/13 47 | 35.176.0.0/13 48 | 44.224.0.0/11 49 | 50.16.0.0/15 50 | 52.0.0.0/13 51 | 52.160.0.0/11 52 | 52.222.0.0/17 53 | 52.224.0.0/13 54 | 52.240.0.0/12 55 | 52.24.0.0/13 56 | 52.32.0.0/13 57 | 52.40.0.0/14 58 | 52.44.0.0/15 59 | 52.54.0.0/15 60 | 52.61.0.0/16 61 | 52.72.0.0/15 62 | 52.8.0.0/13 63 | 52.88.0.0/15 64 | 54.148.0.0/16 65 | 54.156.0.0/14 66 | 54.160.0.0/13 67 | 54.184.0.0/13 68 | 54.196.0.0/15 69 | 54.200.0.0/14 70 | 54.208.0.0/14 71 | 54.212.0.0/14 72 | 54.242.0.0/15 73 | 54.64.0.0/12 74 | 54.80.0.0/13 75 | 75.2.0.0/17 76 | 96.127.0.0/17 77 | 99.83.128.0/17 78 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | mkdir -p data 4 | 5 | # Get Amazon AWS IP ranges 6 | wget -O data/aws.json https://ip-ranges.amazonaws.com/ip-ranges.json 7 | cat data/aws.json | jq -r '.prefixes[] | select(.region=="us-gov-east-1" or .region=="us-gov-west-1") | .ip_prefix' | sort -u > ranges-aws.txt 8 | 9 | # Get Microsoft Azure IP ranges 10 | # Download link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=57063 11 | # Extract dynamic download URL: https://stackoverflow.com/a/53939113 12 | AZURE_RANGES_URL=$(curl -Lfs 'https://www.microsoft.com/en-us/download/confirmation.aspx?id=57063' | grep -Eoi ']+>' | grep -Eo 'href="[^\"]+"' | grep "download.microsoft.com/download/" | grep -m 1 -Eo '(http|https)://[^"]+') 13 | wget -O data/azure.json $AZURE_RANGES_URL 14 | cat data/azure.json | jq -r '.values[] | .properties.addressPrefixes[]' | grep -oP '^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$' | sort -u > ranges-azure.txt 15 | # for labels containing "DoD" only 16 | cat data/azure.json | jq -r '.values[] | select(.name | test("dod"; "i")) | .properties.addressPrefixes[]' | grep -oP '^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$' | sort -u > ranges-azure-dod.txt 17 | --------------------------------------------------------------------------------