This commit is contained in:
2025-12-18 19:19:30 +08:00
parent 3a6b014333
commit 433ad0f5c5
5 changed files with 19 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
include "/etc/bird/vars.conf";
include "/etc/bird/first/*.conf";
include "/etc/bird/function/*.conf";
include "/etc/bird/conf/*.conf";
@@ -8,7 +9,6 @@ protocol device {
protocol kernel {
scan time 20;
merge paths yes limit 4;
ipv6 {
import none;
export filter {
@@ -28,7 +28,6 @@ protocol kernel {
protocol kernel {
scan time 20;
merge paths yes limit 4;
ipv4 {
import none;
export filter {

View File

@@ -7,23 +7,15 @@ function unet_is_valid_network_v4() {
];
}
function unet_is_valid_network_v4_anynet() {
return net ~ [
44.32.191.0/24+,
172.20.21.0/26+
];
}
function unet_is_valid_network_v4_allnet(){
if !unet_is_valid_network_v4_anynet() && !unet_is_valid_network_v4() then return false;
return true;
if unet_is_valid_network_v4() then return true;
if is_self_net() then return true;
if dn42_is_self_net() then return true;
return false;
}
function unet_is_voalid_net_v6(){
return net ~ [
2406:840:e600::/44{44,64},
2a0f:1cc5:0010::/44{44,64},
fde8:936e:ee29::/48{44,64}
];
if is_self_net_v6() then return true;
if dn42_is_self_net_v6() then return true;
return false;
}

View File

@@ -1,6 +1,5 @@
protocol kernel kernel_inet4_102 {
scan time 20;
kernel table 102;
ipv4 {
table inet4;
import none;