I have been trying to get PBR running i have tried 6 fresh installation but i am getting the same error. i think this is a version problem. please someone should help.
Loading environment (on_start) ✗
pbr 1.2.1-r35 FAILED TO START in fw4 nft file mode!!!
Check the output of nft -c -f /var/run/pbr.nft
ERROR: Default fw4 chain 'mangle_forward' is missing!
ERROR: Default fw4 chain 'mangle_output' is missing!
ERROR: Default fw4 chain 'mangle_prerouting' is missing!
ERROR: Errors encountered, please check https://docs.openwrt.melmac.ca/pbr/1.2.1/#ErrorMessagesDetails!
Check the output of nft -c -f /var/run/pbr.nft
#nft -c -f /var/run/pbr.nft
internal:0:0-0: Error: Could not open file "/var/run/pbr.nft": No such file or directory
i also tried to create /var/run/pbr.nft manually and i rebooted the router
here is the error
/var/run/pbr.nft:6:16-18: Error: No such file or directory
add chain inet fw4 pbr_mark_0x010000
^^^
/var/run/pbr.nft:9:16-18: Error: No such file or directory
add chain inet fw4 pbr_mark_0x020000
^^^
/var/run/pbr.nft:12:16-18: Error: No such file or directory
add chain inet fw4 pbr_mark_0x030000
^^^
/var/run/pbr.nft:15:16-18: Error: No such file or directory
add chain inet fw4 pbr_mark_0x040000
^^^
/var/run/pbr.nft:18:16-18: Error: No such file or directory
add chain inet fw4 pbr_mark_0x050000