1
mirror of https://git.dn42.dev/wiki/wiki.git synced 2025-01-12 03:26:22 +01:00

Updated Bird (markdown)

This commit is contained in:
dn42 wiki 2015-03-02 21:32:23 +00:00
parent a4da9a7423
commit 55bbee6b01

View File

@ -110,7 +110,7 @@ $ ruby utils/bgp-filter.rb < data/filter.txt > /etc/bird/filter4.conf
or
curl -sk https://git.dn42/git/dn42/registry/plain/data/filter.txt | \
$ curl -sk https://git.dn42/git/dn42/registry/plain/data/filter.txt | \
awk 'BEGIN {printf "function is_valid_network() {\n return net ~ [\n" } \
/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
sed "$ s/,$/\n ];\n}/" > /etc/bird/filter4.conf
@ -239,7 +239,7 @@ $ ruby utils/bgp-filter.rb < data/filter6.txt > /etc/bird/filter6.conf
or
curl -sk https://git.dn42/git/dn42/registry/plain/data/filter6.txt | \
$ curl -sk https://git.dn42/git/dn42/registry/plain/data/filter6.txt | \
awk 'BEGIN {printf "function is_valid_network() {\n return net ~ [\n" } \
/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
sed "$ s/,$/\n ];\n}/" > /etc/bird/filter6.conf