Fix: bgp route selection
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-28 01:14:15 +08:00
parent db8827f83e
commit dcfe9c677a
5 changed files with 50 additions and 23 deletions

View File

@ -13,7 +13,7 @@ protocol kernel {
# Blackhole (LOCAL_ASN, 0, 666)
if (LOCAL_ASN, 0, 666) ~ bgp_large_community then dest = RTD_BLACKHOLE;
# Only Announced (LOCAL_ASN, 0, 665)
if (LOCAL_ASN, 0, 665) ~ bgp_large_community then reject;
if (LOCAL_ASN, 0, 665) ~ bgp_large_community && bgp_path.last !~ [4200000000..4225479999] then reject;
krt_prefsrc = ROUTER_IP;
accept;
};