Cleaning up
This commit is contained in:
parent
de7c73a907
commit
f12c0fa68d
|
@ -34,7 +34,6 @@ template pipe iBGP_Pipe {
|
|||
export all;
|
||||
}
|
||||
|
||||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP4;
|
||||
|
@ -46,7 +45,6 @@ protocol pipe {
|
|||
}
|
||||
reject;
|
||||
};
|
||||
# import limit 1000 action block;
|
||||
|
||||
export filter {
|
||||
# here we export the whole net
|
|
@ -34,7 +34,6 @@ template pipe iBGP_Pipe {
|
|||
export all;
|
||||
}
|
||||
|
||||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP6;
|
||||
|
|
10
bird.conf
10
bird.conf
|
@ -1,6 +1,6 @@
|
|||
log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
||||
table T_BGP4;
|
||||
table T_OSPF;
|
||||
table T_OSPF4;
|
||||
|
||||
protocol device {
|
||||
scan time 10;
|
||||
|
@ -13,10 +13,6 @@ protocol static {
|
|||
}
|
||||
|
||||
include "/etc/bird/local4.conf";
|
||||
|
||||
# filter helpers
|
||||
#################
|
||||
|
||||
#include "/etc/bird/filter4.conf";
|
||||
include "/etc/bird/community_filters.conf";
|
||||
|
||||
|
@ -33,6 +29,6 @@ protocol kernel {
|
|||
};
|
||||
}
|
||||
|
||||
include "/etc/bird/ospf.conf";
|
||||
include "/etc/bird/bgp.conf";
|
||||
include "/etc/bird/ospf4.conf";
|
||||
include "/etc/bird/bgp4.conf";
|
||||
include "/etc/bird/peers4/*";
|
||||
|
|
73
bird6.conf
73
bird6.conf
|
@ -1,3 +1,4 @@
|
|||
log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
||||
table T_BGP6;
|
||||
table T_OSPF6;
|
||||
|
||||
|
@ -5,14 +6,13 @@ protocol device {
|
|||
scan time 10;
|
||||
}
|
||||
|
||||
# local configuration
|
||||
######################
|
||||
protocol static {
|
||||
route fd62:77fb:94bf::/48 reject;
|
||||
import all;
|
||||
export none;
|
||||
}
|
||||
|
||||
include "/etc/bird/local6.conf";
|
||||
|
||||
# filter helpers
|
||||
#################
|
||||
|
||||
#include "/etc/bird/filter6.conf";
|
||||
include "/etc/bird/community_filters.conf";
|
||||
|
||||
|
@ -21,7 +21,7 @@ protocol kernel {
|
|||
# with non-BIRD routes in the kernel routing table
|
||||
scan time 20;
|
||||
import none;
|
||||
# export all; # Actually insert routes into the kernel routing table
|
||||
# export all; # Actually insert routes into the kernel routing table
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
krt_prefsrc = OWNIP;
|
||||
|
@ -29,63 +29,6 @@ protocol kernel {
|
|||
};
|
||||
}
|
||||
|
||||
# static routes
|
||||
################
|
||||
|
||||
protocol static {
|
||||
route fd62:77fb:94bf::/48 reject;
|
||||
import all;
|
||||
export none;
|
||||
}
|
||||
|
||||
template bgp dnpeers {
|
||||
table T_BGP6;
|
||||
local as 4242423934;
|
||||
path metric 1;
|
||||
import all;
|
||||
export all;
|
||||
}
|
||||
|
||||
template bgp iBGP_Peer {
|
||||
local as OWNAS;
|
||||
igp table T_OSPF6;
|
||||
path metric on;
|
||||
import keep filtered;
|
||||
# import where iBGP_import_peer_policy();
|
||||
# export where iBGP_export_peer_policy();
|
||||
import all;
|
||||
export all;
|
||||
source address OWNIP;
|
||||
next hop self;
|
||||
}
|
||||
|
||||
template pipe iBGP_Pipe {
|
||||
# table name will come from peer definition
|
||||
peer table master;
|
||||
import all;
|
||||
export all;
|
||||
}
|
||||
|
||||
protocol pipe {
|
||||
peer table T_BGP6;
|
||||
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;
|
||||
};
|
||||
|
||||
export filter {
|
||||
# here we export the whole net
|
||||
if is_valid_network() then {
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
include "/etc/bird/ospf6.conf";
|
||||
include "/etc/bird/bgp6.conf";
|
||||
include "/etc/bird/peers6/*";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
protocol ospf {
|
||||
table T_OSPF;
|
||||
table T_OSPF4;
|
||||
import all;
|
||||
export all;
|
||||
|
||||
|
@ -7,9 +7,6 @@ protocol ospf {
|
|||
interface "wg-ospf-*" {
|
||||
};
|
||||
|
||||
interface "wg-uk-lon1" {
|
||||
};
|
||||
|
||||
interface "lo" {
|
||||
stub;
|
||||
};
|
||||
|
@ -17,7 +14,7 @@ protocol ospf {
|
|||
}
|
||||
|
||||
protocol direct {
|
||||
table T_OSPF;
|
||||
table T_OSPF4;
|
||||
import where is_self_net();
|
||||
export none;
|
||||
|
||||
|
@ -31,8 +28,7 @@ filter filter_OSPF {
|
|||
};
|
||||
|
||||
protocol pipe {
|
||||
peer table T_OSPF;
|
||||
peer table T_OSPF4;
|
||||
import filter filter_OSPF;
|
||||
export none;
|
||||
# export filter filter_OSPF;
|
||||
}
|
|
@ -7,9 +7,6 @@ protocol ospf {
|
|||
interface "wg-ospf-*" {
|
||||
};
|
||||
|
||||
interface "wg-uk-lon1" {
|
||||
};
|
||||
|
||||
interface "lo" {
|
||||
stub;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue