pbr: bugfix: filter only static routes for new tables
authorStan Grishin <redacted>
Mon, 23 Sep 2024 21:00:11 +0000 (21:00 +0000)
committerStan Grishin <redacted>
Tue, 24 Sep 2024 17:20:19 +0000 (10:20 -0700)
* fixes https://github.com/openwrt/packages/issues/24999

Signed-off-by: Stan Grishin <redacted>
net/pbr/Makefile
net/pbr/files/etc/init.d/pbr

index b83631118bb63f03517612cbbd002c9cd150cf4f..123c5a171c26381c4a4b40ae2c3f133a1a4a457e 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pbr
 PKG_VERSION:=1.1.7
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 PKG_LICENSE:=AGPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 
index 3a7441e297d3af79de2b87aea0a19f30659b556d..9c655ba563723f7b6382df784c622f723b2d32b2 100755 (executable)
@@ -1664,7 +1664,7 @@ interface_routing() {
                                                        try ip -4 route add $i table "$tid" >/dev/null 2>&1 || ipv4_error=1
                                                fi
                                        done << EOF
-                                       $(ip -4 route list table main)
+                                       $(ip -4 route list table main proto static)
 EOF
                                        try ip -4 rule add fwmark "${mark}/${fw_mask}" table "$tid" priority "$priority" || ipv4_error=1
                                        try nft add chain inet "$nftTable" "${nftPrefix}_mark_${mark}" || ipv4_error=1 
git clone https://git.99rst.org/PROJECT