1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-23 09:20:41 +08:00
NeoNetwork/scripts/generate-roa.sh

24 lines
749 B
Bash
Raw Normal View History

2020-07-21 00:19:10 +08:00
#!/usr/bin/env bash
2020-07-21 02:06:15 +08:00
# shellcheck disable=SC1091
2020-07-21 00:26:51 +08:00
set -euo pipefail
2020-07-21 00:19:10 +08:00
IFS=$'\n\t'
2020-07-21 10:35:53 +08:00
set -x
2020-07-21 00:19:10 +08:00
export MAX_LEN_4=29
export MAX_LEN_6=64
2020-07-26 19:44:01 +08:00
mkdir -p generated
mkdir -p generated/dns
2020-07-26 19:43:02 +08:00
2020-08-29 23:40:10 +08:00
scripts/dns-reverse-generator.py
2020-07-26 20:39:26 +08:00
cp -R dns/* generated/dns
2020-07-21 11:30:06 +08:00
2020-08-29 23:40:10 +08:00
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -o generated/roa46_bird2.conf
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -4 -o generated/roa4_bird2.conf
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -6 -o generated/roa6_bird2.conf
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -j -o generated/roa46.json
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -e -o generated/neonetwork.json
scripts/roa.py -m "$MAX_LEN_4" -M "$MAX_LEN_6" -r -o generated/rfc8416.json
scripts/roa.py --summary --output generated/README.md