Fixed bird configurations

This commit is contained in:
Tristan B. Velloza Kildaire 2021-05-31 22:34:16 +02:00
parent 1b3765c06b
commit bac9df0997
2 changed files with 7 additions and 39 deletions

View File

@ -58,7 +58,7 @@ ip inPrefixMasked;
# CRXN Route filter based
filter crxn6
{
# CRXN v6 range
# CRXN v6 range
if (rangeCheck(net, fd00::/8) = true)
then
accept;
@ -68,8 +68,6 @@ filter crxn6
then
accept;
# No matches, reject
reject;
}
@ -86,12 +84,6 @@ It is meant to have the same routes as the `crxn` table.
```
# CRXN table
table crxn;
# master table
# This is the default table, I only use this as the looking glass defaults to looking at it
table master;
```
#### `router.conf`
@ -111,13 +103,9 @@ doesn't even need those, it gets them from the interface.
# directly attached networks - i.e. nexthop = 0.0.0.0)
protocol direct crxnDirect {
# Import from direct -> bird into bird's `crxn` table
# Import from direct -> bird into bird's `crxn` table
import filter crxn6;
table crxn;
# Only doing this so it shows by default in looking glass
import filter crxn6;
table master;
}
```
@ -134,13 +122,9 @@ TODO: Check, defualt `learn` should larn non `kernel` and non-`bird` routes
# Of course we also then export all routes from our Bird tables into the kernel so you can actually forward packets
protocol kernel crxnKernel {
# Export from bird -> kernel from bird's `crxn` table
export filter crxn6;
table crxn;
# Only doing this so it shows by default in looking glass
import filter crxn6;
table master;
# Export from bird -> kernel from bird's `crxn` table
export filter crxn6;
table crxn;
}
```

View File

@ -68,8 +68,6 @@ filter crxn6
then
accept;
# No matches, reject
reject;
}
@ -86,12 +84,6 @@ It is meant to have the same routes as the `crxn` table.
```
# CRXN table
ipv6 table crxn;
# master table
# This is the default table, I only use this as the looking glass defaults to looking at it
ipv6 table master;
```
#### `router.conf`
@ -115,11 +107,7 @@ protocol direct crxnDirect {
# Import from direct -> bird into bird's `crxn` table
import filter crxn6;
table crxn;
# Only doing this so it shows by default in looking glass
import filter crxn6;
table master;
}
};
}
```
@ -139,11 +127,7 @@ protocol kernel crxnKernel {
# Export from bird -> kernel from bird's `crxn` table
export filter crxn6;
table crxn;
# Only doing this so it shows by default in looking glass
import filter crxn6;
table master;
}
};
}
```