add corbina, expanad mts, less updates per day
This commit is contained in:
parent
3b2655e7b5
commit
04ef149315
4
.github/workflows/update.yml
vendored
4
.github/workflows/update.yml
vendored
@ -3,7 +3,7 @@ name: "Update"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '8 */4 * * *' # At minute 8 past every 4th hour
|
||||
- cron: '8 */8 * * *' # At minute 8 past every 8th hour
|
||||
|
||||
jobs:
|
||||
updater:
|
||||
@ -70,6 +70,7 @@ jobs:
|
||||
bash yandexcloud/downloader.sh
|
||||
bash mtscloud/downloader.sh
|
||||
bash mts/downloader.sh
|
||||
bash corbina/downloader.sh
|
||||
|
||||
- name: Create All-In-One ranges
|
||||
run: |
|
||||
@ -108,6 +109,7 @@ jobs:
|
||||
python utils/merge.py --source=yandexcloud/ipv4.txt | sort -h > yandexcloud/ipv4_merged.txt
|
||||
python utils/merge.py --source=mtscloud/ipv4.txt | sort -h > mtscloud/ipv4_merged.txt
|
||||
python utils/merge.py --source=mts/ipv4.txt | sort -h > mts/ipv4_merged.txt
|
||||
python utils/merge.py --source=corbina/ipv4.txt | sort -h > corbina/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
|
||||
|
||||
27
corbina/downloader.sh
Executable file
27
corbina/downloader.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
|
||||
# get from Autonomous System
|
||||
get_maintained() {
|
||||
whois -h whois.ripe.net -- "-i mnt-by $1" | grep '^route' | awk '{ print $2; }'
|
||||
whois -h whois.radb.net -- "-i mnt-by $1" | grep '^route' | awk '{ print $2; }'
|
||||
whois -h rr.ntt.net -- "-i mnt-by $1" | grep '^route' | awk '{ print $2; }'
|
||||
whois -h whois.ripe.net -- "-i mnt-by $1" | grep inetnum|awk '{$1=""; system("ipcalc -b -r "$2" "$4"| tail +2");}'
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#get_maintained 'MNT-CLOUDMTS' > /tmp/corbina.txt || echo 'failed'
|
||||
get_maintained 'RU-CORBINA-MNT' > /tmp/corbina.txt || echo 'failed'
|
||||
|
||||
|
||||
# save ipv4
|
||||
grep -v ':' /tmp/corbina.txt > /tmp/corbina-ipv4.txt
|
||||
|
||||
|
||||
# sort & uniq
|
||||
sort -h /tmp/corbina-ipv4.txt | uniq > corbina/ipv4.txt
|
||||
@ -17,6 +17,8 @@ get_maintained() {
|
||||
|
||||
#get_maintained 'MNT-CLOUDMTS' > /tmp/mts.txt || echo 'failed'
|
||||
get_maintained 'MTU-NOC' > /tmp/mts.txt || echo 'failed'
|
||||
get_maintained 'MGTS-MNT' > /tmp/mts.txt || echo 'failed'
|
||||
get_maintained 'MGTS-USPD-MNT' > /tmp/mts.txt || echo 'failed'
|
||||
|
||||
|
||||
# save ipv4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user