1
mirror of https://git.dn42.dev/dn42/registry.git synced 2025-07-08 18:44:31 -07:00
Files
dn42-registry/data/filter6.txt
Marek Küthe d0dd925207 Improve filter files
Fix typo

Fix another typo

Unify for and to

Adjustment of the name according to the example in the wiki

Signed-off-by: Marek Küthe <[EMAIL HIDDEN]>
2025-01-13 20:34:23 +00:00

24 lines
1.0 KiB
Plaintext

# For FRR Rules:
# cat filter6.txt | \
# grep -e ^[0-9] | \
# awk '{ print "ipv6 prefix-list dn42v6-in seq " $1 " " $2 " " $3 " ge " $4 " le " $5}' | \
# sed "s_/\([0-9]\+\) ge \1_/\1_g;s_/\([0-9]\+\) le \1_/\1_g"
#
# For BIRD Rules:
# cat filter6.txt | \
# awk 'BEGIN {printf "function is_valid_network_v6() {\n return net ~ [\n" } \
# /^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
# sed "$ s/,$/\n ];\n}/"
# The rules MUST be sorted by the number column first and then the first matching rule MUST be used.
# ROAs MUST be checked against these rules and max-length of the ROA MUST NOT be longer than allowed by the matching rule.
# Nr Action Prefix MinLen MaxLen # Comment
0010 deny fdd6:6302:7c04::/48 48 128 # Filter test, see fdd6:6302:7c04::/48
1001 permit fd00::/8 44 64 # ULA (defined)
9999 deny ::/0 0 128 # block the rest