diff --git a/etc/bird/bird.conf b/etc/bird/bird.conf index f7811b7..906e123 100644 --- a/etc/bird/bird.conf +++ b/etc/bird/bird.conf @@ -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; }