1
mirror of https://git.dn42.dev/wiki/wiki.git synced 2024-11-19 04:07:25 +01:00

Updated Bird (markdown)

This commit is contained in:
dn42 wiki 2015-03-02 14:39:31 +00:00
parent 84d587b7ad
commit 6d52da7395

View File

@ -107,6 +107,14 @@ Generate the filter list from the monotone repository
```
$ cd net.dn42.registry
$ 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 | \
awk 'BEGIN {printf "function is_dn42() {\n return net ~ [\n" } \
/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
sed "$ s/,$/\n ];\n}/" > /etc/bird/filter4.conf
```
example filter list:
@ -228,6 +236,14 @@ Generate the filter list from the monotone repository
```
$ cd net.dn42.registry
$ 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 | \
awk 'BEGIN {printf "function is_dn42() {\n return net ~ [\n" } \
/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
sed "$ s/,$/\n ];\n}/" > /etc/bird/filter6.conf
```
example filter list: