Files
bird_config/bird/net/inet.conf
2025-12-18 19:19:30 +08:00

26 lines
604 B
Plaintext

protocol kernel kernel_inet4_102 {
scan time 20;
ipv4 {
table inet4;
import none;
export filter {
if source = RTS_STATIC then reject;
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
if !is_bogon_prefix() then {
krt_prefsrc = LOCAL_V4_kernel;
accept;
}
reject;
};
};
};
protocol pipe inet6_sync_to_master6 {
table inet6;
peer table master6;
export filter {
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
accept;
};
import none;
}