OpenWrt 23.05.5 r24106-10cc5fcd00
I'm using wireguard,pbr and https-dns-proxy .
Because my vpn provider has dns issues I,m trying to route the doh traffic out the wg interface instead of wan .
The last pbr rule I have specified is
Https dns proxy runs on the router so for a PBR policy you need the OUTPUT chain.
Do not set a src_adr but make sure you set a destination address which is the addres of your doh dns server
Ok that seems to work . So what this says is the prerouting chain is for traffic coming to the router from some interface and the output chain is for traffic originating from the router ?
If the last pbr rule was "outputchain , any port from any ip to any port at any ip send to wg/vpn"
would that do the same thing or would I lock myself out ? The first pbr rule is ignore all traffic to local subnets