]> git.ipfire.org Git - thirdparty/bird.git/blob - bird.conf
accept should behave as return, not running any commands after it.
[thirdparty/bird.git] / bird.conf
1 /*
2 * This is an example configuration file.
3 */
4
5 # Yet another comment
6
7 router id 62.168.0.1;
8
9 define xyzzy = 120+10;
10
11 filter testf
12 int j;
13 {
14 print "Ok, accepting";
15 accept;
16 print "Heya, filtering route to " rta.net.ip " prefixlen " rta.net.len;
17 print "This route was from " rta.from;
18 j = 7;
19 j = 17;
20 if rta.rip_metric > 15 then
21 print "RIP Metric is more than infinity";
22
23 accept;
24 }
25
26 protocol rip MyRIP_test {
27 preference xyzzy;
28 debug all;
29 port 1520;
30 period 5;
31 garbagetime 30;
32 interface "*" { mode broadcast; };
33 export filter testf;
34 honour neighbour;
35 passwords { password "ahoj" from 0 to 10;
36 password "nazdar" from 10;
37 }
38 authentication none;
39 }
40
41 protocol device {
42 # disabled;
43 # interface "eth*", "ppp*";
44 }
45
46 #protocol kernel {
47 # disabled;
48 # learn; # Learn all routes from the kernel
49 # scan time 10; # Scan kernel tables every 10 seconds
50 #}
51
52 protocol static {
53 # disabled;
54 route 0.0.0.0/0 via 62.168.0.13;
55 route 62.168.0.0/25 reject;
56 # route 10.0.0.0/8 reject;
57 # route 10.1.1.0:255.255.255.0 via 62.168.0.3;
58 # route 10.1.2.0:255.255.255.0 via 62.168.0.3;
59 # route 10.1.3.0:255.255.255.0 via 62.168.0.4;
60 # route 10.2.0.0/24 via "arc0";
61 }