This commit is contained in:
2025-10-13 01:17:30 +08:00
parent 1660565696
commit 1d0af5fadb
3 changed files with 35 additions and 9 deletions

View File

@@ -31,7 +31,22 @@ protocol kernel {
krt_prefsrc = UNET_V4_kernel;
accept;
}
reject;
};
};
};
# echo "102 ipv4_pub" >> /etc/iproute2/rt_tables
protocol kernel {
scan time 20;
kernel table 102;
ipv4 {
table inet4;
import none;
export filter {
if source = RTS_STATIC then reject;
if !is_bogon_prefix() then {
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
krt_prefsrc = LOCAL_V4_kernel;
accept;
}