mirror of
https://github.com/lord-alfred/ipranges.git
synced 2026-07-24 21:11:56 +00:00
Add Linode
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user