Browse Source

Add Linode

pull/3/head
Lord Alfred 3 years ago
parent
commit
d3259ca606
  1. 7
      .github/workflows/update.yml
  2. 11
      README.md
  3. 22
      linode/downloader.sh

7
.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

11
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

22
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
Loading…
Cancel
Save