This commit is contained in:
2025-10-30 10:25:57 +08:00
parent 0a2ed5e91f
commit 947a310e20
12 changed files with 218 additions and 63 deletions

View File

@@ -12,6 +12,10 @@ protocol kernel {
import none;
export filter {
if source = RTS_STATIC then reject;
if dn42_is_self_net_v6() then { # 检查DN42自有网段
krt_prefsrc = DN42_V6_kernel;
accept;
}
if !is_bogon_prefix() then {
krt_prefsrc = LOCAL_V6_kernel;
accept;
@@ -27,7 +31,11 @@ protocol kernel {
import none;
export filter {
if source = RTS_STATIC then reject;
if unet_is_valid_network_v4() then {
if dn42_is_self_net() then { # 检查DN42自有网段
krt_prefsrc = DN42_V4_kernel;
accept;
}
if unet_is_valid_network_v4() then { # 检查UNET自有网段
krt_prefsrc = UNET_V4_kernel;
accept;
}