d052b5be45d42b222dd52801aa04d315f90682ae
howto/Bird.md
| ... | ... | @@ -301,7 +301,7 @@ Generate the filter list from the monotone repository |
| 301 | 301 | |
| 302 | 302 | ``` |
| 303 | 303 | $ cd net.dn42.registry |
| 304 | -$ ruby utils/bgp-filter.rb --format bird < data/filter.txt > /etc/bird/filter4.conf |
|
| 304 | +$ ruby utils/bgp-filter.rb --format bird < data/filter.txt > /var/lib/bird/filter4.conf |
|
| 305 | 305 | |
| 306 | 306 | or |
| 307 | 307 | |
| ... | ... | @@ -309,7 +309,7 @@ $ curl -s https://ca.dn42.us/reg/filter.txt | \ |
| 309 | 309 | awk '/^[0-9]/ && $2 ~ /permit/ {printf "%s{%s,%s}\n", $3, $4, $5}' | \ |
| 310 | 310 | awk 'BEGIN {printf "function is_valid_network() {\n return net ~ [\n"} \ |
| 311 | 311 | NR > 1 {printf ",\n"} {printf " %s", $1} |
| 312 | - END {printf "\n ];\n}\n"}' > /etc/bird/filter4.conf |
|
| 312 | + END {printf "\n ];\n}\n"}' > /var/lib/bird/filter4.conf |
|
| 313 | 313 | ``` |
| 314 | 314 | |
| 315 | 315 | example filter list: |
| ... | ... | @@ -374,8 +374,8 @@ The files above are maintained by **chrismoos**, contact him on IRC if there are |
| 374 | 374 | You can add cron entries to periodically update the tables: |
| 375 | 375 | |
| 376 | 376 | ``` |
| 377 | -*/15 * * * * curl -sfSLR {-o,-z}/etc/bird/bird6_roa_dn42.conf https://dn42.tech9.io/roa/bird6_roa_dn42.conf && chronic birdc6 configure |
|
| 378 | -*/15 * * * * curl -sfSLR {-o,-z}/etc/bird/bird_roa_dn42.conf https://dn42.tech9.io/roa/bird_roa_dn42.conf && chronic birdc configure |
|
| 377 | +*/15 * * * * curl -sfSLR {-o,-z}/var/lib/bird/bird6_roa_dn42.conf https://dn42.tech9.io/roa/bird6_roa_dn42.conf && chronic birdc6 configure |
|
| 378 | +*/15 * * * * curl -sfSLR {-o,-z}/var/lib/bird/bird_roa_dn42.conf https://dn42.tech9.io/roa/bird_roa_dn42.conf && chronic birdc configure |
|
| 379 | 379 | ``` |
| 380 | 380 | |
| 381 | 381 | ## Filter configuration |
| ... | ... | @@ -393,7 +393,7 @@ Also, define your ROA table with: |
| 393 | 393 | |
| 394 | 394 | ``` |
| 395 | 395 | roa table dn42_roa { |
| 396 | - include "bird_roa_dn42.conf"; |
|
| 396 | + include "/var/lib/bird/bird_roa_dn42.conf"; |
|
| 397 | 397 | }; |
| 398 | 398 | ``` |
| 399 | 399 |