Policy-Based routing help

Hello, I'm using PBR and I am having a bit of trouble getting something to work. I'm trying to use my VPN providers proprietary Pre-shared key generator but unfortunately I can not figure out how to use it with PBR. The tool is here: https://github.com/mullvad/wgephemeralpeer

Basically, I can get it to work when I have "Route Allowed IPs" checked/on, but it won't work otherwise. I have local address "" set to forward all traffic to the WG peer but it does not work for some reason. Is OpenWrt itself exempt from PBR rules and is there a way to make it work?

For routing the router itself via pbr you need to use an OUTPUT rule instead of a PREROUTING rule


That worked wonderfully, thank you! :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.