ix-bird-config/bgp.conf

38 lines
1 KiB
Plaintext
Raw Normal View History

template bgp dnpeers {
local as OWNAS;
2018-09-12 09:16:29 +00:00
table T_BGP4;
# metric is the number of hops between us and the peer
path metric 1;
2018-09-12 09:16:29 +00:00
# this line allows debugging filter rules
# filtered routes can be looked up in birdc using the "show route filtered" command
2018-09-12 09:16:29 +00:00
import keep filtered on;
import all;
export all;
#source address 172.20.170.192;
};
protocol pipe {
2018-09-12 09:16:29 +00:00
table master;
peer table T_BGP4;
import filter {
# accept every subnet, except our own advertised subnet
# filtering is important, because some guys try to advertise routes like 0.0.0$
if is_valid_network() && !is_self_net() then {
accept;
}
reject;
};
2018-09-12 09:16:29 +00:00
# import limit 1000 action block;
export filter {
# here we export the whole net
if is_valid_network() then {
accept;
}
reject;
};
};