I currently have policy-based routing set up on a dedicated interface such that anything connected to that interface goes to wg1 and it works great:
/etc/config/pbr
...
config policy
option src_addr '10.9.4.0/24'
option interface 'wg1'
option name 'wg1 redirect'
Got me thinking why can't I setup a policy that applies to just the target device by IP and the domains I think are associated with youtubetv. Based on a tcpdump capture while using it:
googleapis.com googlevideo.com youtube.com ytimg.com googleusercontent.com ggpht.com gstatic.com
What I cannot figure out is why the following does not send the traffic from the target device to through the wg1 interface.
As a test, all endpoints DOES work:
config policy
option name 'test'
option src_addr '10.9.8.101'
option interface 'wg1'
But when I add the following, I cannot see any traffic flowing through wg1 when playing videos (not cached) from www.youtube.com. What am I missing?
option dest_addr 'googleapis.com googlevideo.com youtube.com ytimg.com googleusercontent.com ggpht.com gstatic.com'