wgengine/userspace: add support to automatically enable/disable the tailscale

protocol in BIRD, when the node is a primary subnet router as determined
by control.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2021-08-30 09:45:55 -07:00
committed by Maisem Ali
parent 7fcf86a14a
commit fd4838dc57
11 changed files with 215 additions and 12 deletions

View File

@ -0,0 +1,16 @@
log syslog all;
protocol device {
scan time 10;
}
protocol bgp {
local as 64001;
neighbor 10.40.2.101 as 64002;
ipv4 {
import none;
export all;
};
}
include "tailscale_bird.conf";

View File

@ -0,0 +1,4 @@
protocol static tailscale {
ipv4;
route 100.64.0.0/10 via "tailscale0";
}