From: Stan Grishin Date: Mon, 23 Sep 2024 21:00:11 +0000 (+0000) Subject: pbr: bugfix: filter only static routes for new tables X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=77eedd8c6664e3c4c7759e5b39eab297046d52f2;p=openwrt-packages.git pbr: bugfix: filter only static routes for new tables * fixes https://github.com/openwrt/packages/issues/24999 Signed-off-by: Stan Grishin --- diff --git a/net/pbr/Makefile b/net/pbr/Makefile index b83631118..123c5a171 100644 --- a/net/pbr/Makefile +++ b/net/pbr/Makefile @@ -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 diff --git a/net/pbr/files/etc/init.d/pbr b/net/pbr/files/etc/init.d/pbr index 3a7441e29..9c655ba56 100755 --- a/net/pbr/files/etc/init.d/pbr +++ b/net/pbr/files/etc/init.d/pbr @@ -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