This commit is contained in:
2025-12-17 18:13:41 +08:00
parent 1bf21683ce
commit 3a6b014333
2 changed files with 12 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
protocol kernel {
protocol kernel kernel_inet4_102 {
scan time 20;
kernel table 102;
ipv4 {
@@ -6,6 +6,7 @@ protocol kernel {
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;
@@ -15,20 +16,12 @@ protocol kernel {
};
};
protocol kernel {
scan time 20;
kernel table 102;
ipv6 {
table inet6;
import none;
export filter {
if source = RTS_STATIC then reject;
if !is_bogon_prefix() then {
krt_prefsrc = LOCAL_V6_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;
}

View File

@@ -1,4 +1,4 @@
# 公网处理
# 公网处理 => inet4/6
protocol pipe unet4_inet4_sync {
table unet4;
peer table master4;
@@ -24,7 +24,7 @@ protocol pipe unet6_inet6_sync {
}
# DN42处理
# DN42处理 => dn42v4/6
protocol pipe unet4_dn42v4_sync {
table unet4;
peer table dn42v4;