-
Notifications
You must be signed in to change notification settings - Fork 1
/
bird.conf
50 lines (42 loc) · 793 Bytes
/
bird.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
include "/etc/bird/local4.conf";
include "/etc/bird/community_filters.conf";
router id OWNIP;
protocol device {
scan time 10;
}
protocol static ext_static {
table peers;
route 172.22.119.0/25 reject;
import all;
export none;
};
protocol static int_static {
route OWNIP/32 unreachable;
import all;
export none;
};
protocol pipe peers_sync {
peer table peers;
import filter {
if !is_self_net() then accept;
reject;
};
export filter {
if (bgp_path.len = 0) then {
print "[dn42] BGP route with empty path in master table: ", net;
reject;
}
if source = RTS_BGP then accept;
reject;
};
}
protocol kernel {
scan time 20;
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
};
include "/etc/bird/peers4/*";