OpenWRT 23 Wireguard Routing Policy

Hi, I'm use OpenWRT for first time, with lates firmware on Asus RT-AC58U,

everything works fine - WAN, Wireless. I've setup wireguard client connection from router to Wireguard server - seems like connection is Ok. So my question is about what:
How I can route traffic of only one lan client (TV) thrue Wireguard tunnel?

I made a rule in Policy routing

But seems like it doesn't work (

https://openwrt.org/docs/guide-user/network/routing/pbr

1 Like

please don't update older posts with follow up questions.

temp map the local device/IP of something else than the TV, where you can see what's actually going on.

i can map laptop, so rule is correct?

if the rule works for the laptop, then the issue's with the TV.

rule don't work correct with laptop, how to debug this issue?

Use protocol: Any/All to begin with

Reboot router and test with ipleak.net

2 Likes

I did that, when I activate the rule, ipleak.net do no sees my ipv4 address, only ipv6, and still see that I'm on my home provider (not VPN)
When i disable rule ipleak.net detects all addresses correctly

I see that wireguard server-client connection is established, but no traffic goes through it, may be this is firewall issue? Do i need some firewall setting for wireguard client connection?

You sure do, see: https://openwrt.org/docs/guide-user/services/vpn/wireguard/client