From d3259ca606b32913e3027d3bbdf62aa9924325ae Mon Sep 17 00:00:00 2001 From: Lord Alfred <2259979+lord-alfred@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:26:49 +0300 Subject: [PATCH] Add Linode --- .github/workflows/update.yml | 7 +++++-- README.md | 11 +++++++++-- linode/downloader.sh | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 linode/downloader.sh diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 687d19be..eae7fc66 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -24,11 +24,12 @@ jobs: bash github/downloader.sh bash facebook/downloader.sh bash twitter/downloader.sh + bash linode/downloader.sh - name: Create All-In-One ranges run: | - cat google/ipv4.txt amazon/ipv4.txt microsoft/ipv4.txt oracle/ipv4.txt digitalocean/ipv4.txt bing/ipv4.txt github/ipv4.txt facebook/ipv4.txt twitter/ipv4.txt | sort -h > all/ipv4.txt - cat google/ipv6.txt amazon/ipv6.txt microsoft/ipv6.txt digitalocean/ipv6.txt github/ipv6.txt facebook/ipv6.txt twitter/ipv6.txt | sort -h > all/ipv6.txt + cat google/ipv4.txt amazon/ipv4.txt microsoft/ipv4.txt oracle/ipv4.txt digitalocean/ipv4.txt bing/ipv4.txt github/ipv4.txt facebook/ipv4.txt twitter/ipv4.txt linode/ipv4.txt | sort -h > all/ipv4.txt + cat google/ipv6.txt amazon/ipv6.txt microsoft/ipv6.txt digitalocean/ipv6.txt github/ipv6.txt facebook/ipv6.txt twitter/ipv6.txt linode/ipv6.txt | sort -h > all/ipv6.txt - name: Set up Python 3.7 uses: actions/setup-python@v2 @@ -61,6 +62,7 @@ jobs: python utils/merge.py --source=github/ipv4.txt | sort -h > github/ipv4_merged.txt python utils/merge.py --source=facebook/ipv4.txt | sort -h > facebook/ipv4_merged.txt python utils/merge.py --source=twitter/ipv4.txt | sort -h > twitter/ipv4_merged.txt + python utils/merge.py --source=linode/ipv4.txt | sort -h > linode/ipv4_merged.txt python utils/merge.py --source=all/ipv4.txt | sort -h > all/ipv4_merged.txt # ipv6 python utils/merge.py --source=google/ipv6.txt | sort -h > google/ipv6_merged.txt @@ -72,6 +74,7 @@ jobs: python utils/merge.py --source=github/ipv6.txt | sort -h > github/ipv6_merged.txt python utils/merge.py --source=facebook/ipv6.txt | sort -h > facebook/ipv6_merged.txt python utils/merge.py --source=twitter/ipv6.txt | sort -h > twitter/ipv6_merged.txt + python utils/merge.py --source=linode/ipv6.txt | sort -h > linode/ipv6_merged.txt python utils/merge.py --source=all/ipv6.txt | sort -h > all/ipv6_merged.txt - name: Commit files diff --git a/README.md b/README.md index 233816a6..90821575 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![IP Ranges](logo.png) -List all IP ranges from: Google (Cloud & GoogleBot), Bing (Bingbot), Amazon (AWS), Microsoft (Azure), Oracle (Cloud), DigitalOcean, GitHub, Facebook (Meta) and Twitter with daily updates. +List all IP ranges from: Google (Cloud & GoogleBot), Bing (Bingbot), Amazon (AWS), Microsoft (Azure), Oracle (Cloud), DigitalOcean, GitHub, Facebook (Meta), Twitter and Linode with daily updates. All lists are obtained from public sources. @@ -75,6 +75,13 @@ All addresses are stored in `.txt` files with CIDRs, where each range is on a ne - IPv6: https://raw.githubusercontent.com/lord-alfred/ipranges/main/twitter/ipv6.txt - IPv6 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/twitter/ipv6_merged.txt +### Linode + +- IPv4: https://raw.githubusercontent.com/lord-alfred/ipranges/main/linode/ipv4.txt +- IPv4 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/linode/ipv4_merged.txt +- IPv6: https://raw.githubusercontent.com/lord-alfred/ipranges/main/linode/ipv6.txt +- IPv6 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/linode/ipv6_merged.txt + ## All-In-One IPs A list of IP addresses from all sources combined into one file. @@ -90,7 +97,7 @@ A list of IP addresses from all sources combined into one file. - LinkedIn: https://github.com/SecOps-Institute/LinkedInIPLists - TOR: https://github.com/SecOps-Institute/Tor-IP-Addresses - Spamhaus: https://github.com/SecOps-Institute/SpamhausIPLists -- Alibaba, Linode, Telegram and others: https://github.com/im-sm/Mikrotik-IP-List +- Alibaba, Telegram and others: https://github.com/im-sm/Mikrotik-IP-List ## Author diff --git a/linode/downloader.sh b/linode/downloader.sh new file mode 100644 index 00000000..5fef615f --- /dev/null +++ b/linode/downloader.sh @@ -0,0 +1,22 @@ +#!/bin/bash + + +# https://www.linode.com/community/questions/19247/list-of-linodes-ip-ranges + +set -euo pipefail +set -x + + +# get from public ranges +curl -s https://geoip.linode.com/ | grep -v '^#' | cut -d, -f1 > /tmp/linode.txt + +# save ipv4 +grep -v ':' /tmp/linode.txt > /tmp/linode-ipv4.txt + +# save ipv6 +grep ':' /tmp/linode.txt > /tmp/linode-ipv6.txt + + +# sort & uniq +sort -h /tmp/linode-ipv4.txt | uniq > linode/ipv4.txt +sort -h /tmp/linode-ipv6.txt | uniq > linode/ipv6.txt