PBR Policy Based Routing Error - Failed to install fw4 nft file '/var/run/pbr.nft'!

Cannot run custom user scripts in PBR on latest Immortal version of R6S (realise it is a fork as there's no official build)

Policy Based Routing - Status

Service Status

Version 1.1.4-16 - Stopped.

Service Gateways

wan/eth2/100.101.64.1/::/0 ✓
OPENVPNCLI/tun0/0.0.0.0/::/0
WGPIA/10.14.0.2/::/0

The indicates default gateway. See the README for details.

Service Errors

Error running custom user file '/usr/share/pbr/pbr.user.netflix'!
Error running custom user file '/usr/share/pbr/pbr.user.aws'!
Failed to install fw4 nft file '/var/run/pbr.nft'!
Errors encountered, please check the README

Disabling the custom user file removes the error but need to install the wireguard client and server user file shortly

name -a
Linux FriendlyWrt 6.6.43 #0 SMP PREEMPT Mon Jul 29 11:12:02 2024 aarch64 GNU/Linux

(then you should also realize it's not supported here)


It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

2 Likes