Enable chaosvpn route exchange

This commit is contained in:
Leo Krueger 2014-05-02 00:16:00 +02:00
parent 0bb59a7886
commit 0f6350267e

View file

@ -69,7 +69,7 @@ function is_chaos() {
# nothing in the other direction
protocol kernel k_mast {
scan time 10;
import none;
import where is_chaos();
export filter {
krt_prefsrc = 10.112.1.1; # REPLACE
accept;
@ -113,13 +113,13 @@ protocol pipe p_ibgptbl {
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
protocol pipe p_freitbl {
table ibgp;
peer table freifunk;
import none;
export where (is_freifunk() || is_dn42());
export where (is_freifunk() || is_dn42() || is_chaos());
};
### static routes ###
@ -162,8 +162,8 @@ template bgp peers {
table ebgp;
local as ownas;
# ignore routes for our own network
import where ((is_freifunk() || is_dn42()) && !is_self_net());
export where (is_freifunk() || is_dn42());
import where ((is_freifunk() || is_dn42() || is_chaos()) && !is_self_net());
export where (is_freifunk() || is_dn42() || is_chaos());
route limit 10000;
};