Skip to content

Commit

Permalink
pbr: bugfix: filter only static routes for new tables
Browse files Browse the repository at this point in the history
* fixes #24999

Signed-off-by: Stan Grishin <[email protected]>
  • Loading branch information
stangri committed Sep 24, 2024
1 parent e828f98 commit 77eedd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/pbr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion net/pbr/files/etc/init.d/pbr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77eedd8

Please sign in to comment.