Update etc/bird/bird.conf
This commit is contained in:
parent
348b6c02c9
commit
88d7993d06
1 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ define OWNAS = 4242420129;
|
|||
define OWNIPv6 = fdfe:8d0:7450:100::;
|
||||
define OWNNETv6 = fdfe:8d0:7450::/48;
|
||||
define OWNNETSETv6 = [fdfe:8d0:7450::/48+];
|
||||
define DN_REGION_GEO = 41;
|
||||
define DN_REGION_COUNTRY = 1000;
|
||||
|
||||
################################################
|
||||
# Header end #
|
||||
|
|
@ -89,6 +91,11 @@ function import_filter() {
|
|||
}
|
||||
|
||||
function export_filter() {
|
||||
if is_self_net_v6() then {
|
||||
bgp_community.add((64511, DN_REGION_GEO));
|
||||
bgp_community.add((64511, DN_REGION_COUNTRY));
|
||||
}
|
||||
|
||||
if is_valid_network_v6() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue