This commit is contained in:
2025-10-13 02:40:32 +08:00
parent 048b2567bf
commit 8ac68591ca
2 changed files with 9 additions and 26 deletions

View File

@@ -35,27 +35,10 @@ protocol kernel {
krt_prefsrc = UNET_V4_kernel; krt_prefsrc = UNET_V4_kernel;
accept; accept;
} }
<<<<<<< HEAD
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 dn42_is_valid_network() then { if dn42_is_valid_network() then {
krt_prefsrc = DN42_V4_kernel; krt_prefsrc = DN42_V4_kernel;
accept; accept;
} }
>>>>>>> parent of 1660565 (对相关的配置进行修整;)
if !is_bogon_prefix() then { if !is_bogon_prefix() then {
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject; if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
krt_prefsrc = LOCAL_V4_kernel; krt_prefsrc = LOCAL_V4_kernel;

View File

@@ -17,15 +17,15 @@ protocol pipe inet6_sync {
}; };
} }
#protocol pipe inet4_sync { protocol pipe inet4_sync {
# table inet4; table inet4;
# peer table master4; peer table master4;
# import none; import none;
# export filter { export filter {
# if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject; if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
# accept; accept;
# }; };
#} }
protocol pipe dn42v4_sync { protocol pipe dn42v4_sync {
table dn42v4; table dn42v4;