5bdddcf4f1de969928cac17c3a7ceffad7a26543
howto/Bird.md
... | ... | @@ -286,6 +286,36 @@ then create the directory to make sure curls can save the files: |
286 | 286 | mkdir -p /var/lib/bird/ |
287 | 287 | ``` |
288 | 288 | |
289 | +Or use a systemd timer: (check the commands before copy-pasting) |
|
290 | + |
|
291 | +``` |
|
292 | +# /etc/systemd/system/dn42-roa.service |
|
293 | +[Unit] |
|
294 | +Description=Update DN42 ROA |
|
295 | + |
|
296 | +[Service] |
|
297 | +Type=oneshot |
|
298 | +ExecStart=curl -sfSLR -o /etc/bird/roa_dn42.conf -z /etc/bird/roa_dn42.conf https://dn42.burble.com/roa/dn42_roa_bird2_4.conf |
|
299 | +ExecStart=curl -sfSLR -o /etc/bird/roa_dn42_v6.conf -z /etc/bird/roa_dn42_v6.conf https://dn42.burble.com/roa/dn42_roa_bird2_6.conf |
|
300 | +ExecStart=birdc configure |
|
301 | +``` |
|
302 | + |
|
303 | +``` |
|
304 | +# /etc/systemd/system/dn42-roa.timer |
|
305 | +[Unit] |
|
306 | +Description=Update DN42 ROA periodically |
|
307 | + |
|
308 | +[Timer] |
|
309 | +OnBootSec=2m |
|
310 | +OnUnitActiveSec=15m |
|
311 | +AccuracySec=1m |
|
312 | + |
|
313 | +[Install] |
|
314 | +WantedBy=timers.target |
|
315 | +``` |
|
316 | + |
|
317 | +then enable and start the timer with `systemctl enable --now dn42-roa.timer`. |
|
318 | + |
|
289 | 319 | ### Use RPKI ROA in bird2 |
290 | 320 | |
291 | 321 | * Download gortr |