Enable chaosvpn route exchange
This commit is contained in:
parent
0bb59a7886
commit
0f6350267e
10
bird.conf
10
bird.conf
|
@ -69,7 +69,7 @@ function is_chaos() {
|
||||||
# nothing in the other direction
|
# nothing in the other direction
|
||||||
protocol kernel k_mast {
|
protocol kernel k_mast {
|
||||||
scan time 10;
|
scan time 10;
|
||||||
import none;
|
import where is_chaos();
|
||||||
export filter {
|
export filter {
|
||||||
krt_prefsrc = 10.112.1.1; # REPLACE
|
krt_prefsrc = 10.112.1.1; # REPLACE
|
||||||
accept;
|
accept;
|
||||||
|
@ -113,13 +113,13 @@ protocol pipe p_ibgptbl {
|
||||||
export where !is_self_net();
|
export where !is_self_net();
|
||||||
};
|
};
|
||||||
|
|
||||||
# sync routes (freifunk and dn42) from ibgp to freifunk
|
# sync routes (freifunk, dn42 and chaosvpn) from ibgp to freifunk
|
||||||
# sync nothing from freifunk to ibgp
|
# sync nothing from freifunk to ibgp
|
||||||
protocol pipe p_freitbl {
|
protocol pipe p_freitbl {
|
||||||
table ibgp;
|
table ibgp;
|
||||||
peer table freifunk;
|
peer table freifunk;
|
||||||
import none;
|
import none;
|
||||||
export where (is_freifunk() || is_dn42());
|
export where (is_freifunk() || is_dn42() || is_chaos());
|
||||||
};
|
};
|
||||||
|
|
||||||
### static routes ###
|
### static routes ###
|
||||||
|
@ -162,8 +162,8 @@ template bgp peers {
|
||||||
table ebgp;
|
table ebgp;
|
||||||
local as ownas;
|
local as ownas;
|
||||||
# ignore routes for our own network
|
# ignore routes for our own network
|
||||||
import where ((is_freifunk() || is_dn42()) && !is_self_net());
|
import where ((is_freifunk() || is_dn42() || is_chaos()) && !is_self_net());
|
||||||
export where (is_freifunk() || is_dn42());
|
export where (is_freifunk() || is_dn42() || is_chaos());
|
||||||
route limit 10000;
|
route limit 10000;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue