forked from freifunk-luebeck/birdconfig
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbird.conf
66 lines (57 loc) · 1.13 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
protocol device {
scan time 10;
}
# local configuration,
# static routes,
# ospf
table ospf_routes;
include "/etc/bird/local4.conf";
protocol pipe ospf_import {
table ospf_routes;
peer table master;
export filter {
if is_self_net() then {
accept;
}
reject;
};
import none;
}
roa table dn42_roa {
include "/etc/bird/roa4.conf";
};
# filter helpers
#################
include "/etc/bird/filter4.conf";
include "/etc/bird/community_filters.conf";
# Kernel routing tables
########################
protocol kernel {
scan time 20;
device routes;
import keep filtered;
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
};
# DN42
#######
template bgp dnpeers {
local as OWNAS;
path metric 1;
import keep filtered;
import filter {
print "WARNING!! no community import filter set, all routes will be rejected";
reject;
};
export filter {
print "WARNING!! no community import filter set, all routes will be rejected";
reject;
};
import limit 10000 action block;
export limit 10000 action block;
};
include "/etc/bird/peers4/*";