Files
packages/net/pbr
Stan Grishin 8ef980be00 pbr: update to 1.2.2-18
Maintainer: me
Compile tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4
Run tested: x86_64, Dell EMC Edge620, OpenWrt 25.12.4

Description:
Update to version 1.2.2-18

  - Update PKG_RELEASE to 18.

files/etc/init.d/pbr:
  - Update package compatibility level to 26.
  - Improve IPv4 gateway detection for various scenarios (e.g., netifd,
    point-to-point links).
  - Add pbr_get_ipaddr4 function to retrieve an interface's IPv4 address.
  - Improve IPv6 gateway detection, including link-local router discovery
    and point-to-point link handling.
  - Add pbr_get_ipaddr6 function to retrieve an interface's IPv6 address.
  - Introduce `is_punycode` helper for domain validation, recognizing
    internationalized domain names.
  - Expand `is_domain` to include `is_punycode` for comprehensive domain
    matching.
  - Add `warningInterfaceRoutingUnknownGateway` text for improved error
    messages.
  - Enhance `nftset` dnsmasq element addition logic to properly handle
    existing entries and append new specifications for dual-stack.
  - Flush IPv4 and IPv6 routes from custom tables during cleanup to ensure
    proper state reset.
  - Optimize `dns_policy_process` to only record the first IPv4 and IPv6
    DNS servers to avoid issues with multi-value `src_addr` in family
    mismatch checks.
  - Refine IPv4 routing (`interface_routing`) for strict enforcement and
    point-to-point links.
  - Refine IPv6 routing (`interface_routing`) for strict enforcement and
    point-to-point links.
  - Adjust display of gateway information (`dispGw4`, `dispGw6`) to show
    IP address if no gateway is found.
  - Ensure `json_add_gateway` uses `dispGw4` and `dispGw6` for consistent
    output.
  - Move `process_interface` calls for `reset_globals` and
    `enumerate_interface` earlier in `start_service` for consistent
    trigger registration.
  - Add logic to skip IPv6 interface reload if the gateway is unchanged to
    prevent unnecessary restarts.
  - Standardize `service_triggers` to always register all triggers,
    ensuring robust recovery from WAN-down states.

Signed-off-by: Stan Grishin <stangri@melmac.ca>
2026-07-01 13:07:00 -07:00
..
2026-07-01 13:07:00 -07:00
2026-07-01 13:07:00 -07:00
2026-07-01 13:07:00 -07:00
2026-02-05 13:06:55 -08:00
…

Policy-Based Routing (pbr)

OpenWrt Web UI License

Flexible policy-based routing (PBR) framework for OpenWrt.
Allows routing specific traffic (by IP, MAC, port, protocol, or domain) through a specific WAN, VPN, or tunnel.

Features

  • Route by IP, MAC, port, or domain name
  • Works with WAN, VPNs (WireGuard, OpenVPN), or tunnels
  • Lightweight shell-based implementation
  • Optional Web UI integration via LuCI

Full documentation:
https://docs.openwrt.melmac.ca/pbr/