Policy routing configuration I don't know help me pls

What I would like to do is bypass the vpn with a device.

I have read this page 20 times but I don't know anything.
https://docs.openwrt.melmac.net/pbr/#use-resolvers-set-support

Could someone tell me how to do it, here I leave the photos so that you know the version that I use and exactly the steps that I must take.

The vpn is wireguard

Thanks in advance




If you want one of you LAN clients to use the WAN instead of the VPN then start with giving that LAN client a static lease.

The Static lease is used in the PBR.

See this example where I have one of my LAN clients (192.168.9.123) using the WAN:

Note: you are probably not using ipset/nftset so set the "Use resolver set support for domains" to disabled

edit: Some web pages do not load but others do and ping correctly
If I connect it to a vpn client from the pc, the pages work, which is something from the router
I edit again routed to a wifi router in android goes well

1 Like

Not exactly sure what the problem is but can you show output of:

cat /etc/config/network
cat /etc/config/firewall
cat /etc/config/pbr

Use the preformatted text </> to format the output before posting

afbeelding

Remember to redact passwords, MAC addresses and any public IP addresses you may have:

Reference for others: Bypass vpn wireguard

(In the future, feel free to discuss in the original thread instead of making a new one.)

1 Like

I have restarted the router and solved

thank you very much for your attention

2 Likes

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