Add changes that are needed on chaosvpn node

remove if running on non chaosvpn node
This commit is contained in:
Leo Krueger 2014-05-05 15:06:55 +02:00
parent 943c544d7f
commit 2f89ae1ece

View file

@ -70,7 +70,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 where is_chaos(); import where is_chaos(); # on chaosvpn node
export filter { export filter {
krt_prefsrc = 10.112.1.1; # REPLACE krt_prefsrc = 10.112.1.1; # REPLACE
accept; accept;
@ -102,7 +102,7 @@ protocol device {
protocol pipe p_maintbl { protocol pipe p_maintbl {
peer table ebgp; peer table ebgp;
import where !is_self_net(); import where !is_self_net();
export none; export where is_chaos(); # on chaosvpn node
}; };
# sync routes (not own network) from ebgp to ibgp # sync routes (not own network) from ebgp to ibgp
@ -123,6 +123,15 @@ protocol pipe p_freitbl {
export where (is_freifunk() || is_dn42() || is_chaos()); export where (is_freifunk() || is_dn42() || is_chaos());
}; };
# sync routes (chaosvpn) from main routing table to freifunk
# sync nothin from freifunk to main routing table
# this is only needed on chaosvpn node
protocol pipe p_chafrei {
peer table freifunk;
import none;
export where is_chaos();
}
### static routes ### ### static routes ###
# if no openvpn is running, reject everything we do not have a route for # if no openvpn is running, reject everything we do not have a route for