I am attempting to arrange policy-based routing on my OpenWrt router to direct site visitors for particular domains by completely different community interfaces. Here is my present setup:
{Hardware}:
Router: Xiaomi Mi Router 4A Gigabit Version
OpenWrt Model: 23.05.4 r24012-d8dd03c46f
LuCI Model: openwrt-23.05 department git-24.086.45142-09d5a38
Community Configuration:
Default Interface: WAN
VPN Interface: wg0 (WireGuard)
Aim:
Route site visitors for sure domains by the WireGuard interface (wg0) whereas maintaining the default route by WAN.
Drawback:
I’ve adopted the directions to arrange policy-based routing, however I am encountering points:
Generally the community does not work in any respect
Different instances, the VPN (WireGuard) does not operate
In some instances, the coverage routing fails to route site visitors as meant
Tried Options:
I’ve set my default interface as WAN and added insurance policies for the domains I wish to route by WireGuard. Nevertheless, these configurations aren’t working as anticipated.
Questions:
What may very well be inflicting these inconsistent behaviors?
Are there any particular OpenWrt settings or configurations I ought to examine?
How can I troubleshoot the coverage routing to make sure it is accurately directing site visitors?
Are there any logs or diagnostic instruments in OpenWrt that would assist determine the difficulty?
Any steering on the place to start out debugging or what further data I ought to present can be drastically appreciated. Thanks!