Add changes that are needed on chaosvpn node
remove if running on non chaosvpn node
This commit is contained in:
parent
943c544d7f
commit
2f89ae1ece
13
bird.conf
13
bird.conf
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue