I have a wg interface which routes all traffic via it when pbr is disabled. When pbr is enabled (no policies) traffic defaults to the wan interface. I expected pbr to do the opposite: route all traffic via wg unless policies state otherwise.
I want all traffic to default to the wg interface with the exception of 1 machine which should be routed outside the tunnel/via wan. Whether this is achieved with pbr or other tools is irrelevant. How can I achieve this?
I have set the wg peer to route allowed IPs (0.0.0.0/0) and it does default to it when pbr is disabled.
Let me know if I can provide logs/configs for troubleshooting. I use Luci but do have access to ssh if needed.