This plugin works sometimes but mostly it doesn't. I make the necessary adjustments before use, it works sometimes but when I reset the router, it stops working.
When I press the restart button, the above error appears. I configured the tun0 interface.
Log:
Sun Feb 21 16:04:04 2021 user.notice vpn-policy-routing [3429]: Routing 'blank' via OVPN [✗]
Sun Feb 21 16:04:22 2021 user.notice vpn-policy-routing [3429]: Routing 'blank' via OVPN [✗]
Sun Feb 21 16:04:22 2021 user.notice vpn-policy-routing [3429]: service started with gateways: wan/eth0.2/178.233.192.1 [✓] OVPN/tun0/0.0.0.0
Sun Feb 21 16:04:22 2021 user.notice vpn-policy-routing [3429]: ERROR: iptables -t mangle -I VPR_PREROUTING -j MARK --set-xmark 0x020000/0xff0000 -d icanhazip.com -m comment --comment blank ERROR: iptables -t mangle -I VPR_PREROUTING -j MARK --set-xmark 0x020000/0xff0000 -d example.org -m comment --comment blank
Sun Feb 21 16:04:22 2021 user.notice vpn-policy-routing [3429]: ERROR: DNSMASQ ipset support is enabled in vpn-policy-routing, but DNSMASQ is either not installed or installed DNSMASQ does not support ipsets!
Sun Feb 21 16:04:22 2021 user.notice vpn-policy-routing [3429]: service monitoring interfaces: wan OVPN .
ipset is kinda optional but useful for verification that dnsmasq populates ipset properly, which is then referenced in iptables to mark packets which then will be picked up by ip-rule.
When this happens, collect the output and post it to pastebin.com redacting the private parts:
uci show network; uci show firewall; uci show dhcp; \
uci show vpn-policy-routing; /etc/init.d/vpn-policy-routing support; \
ip address show; ip route show table all; ip rule show; iptables-save; \
head -v -n -0 /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/*
Also, I recommend that you have a look at the readme as it has helped me out greatly.
I am no expert but I second the comment from @ppmm that DNSMasq Full is needed to do some of the advanced routing in an efficient way.
If it is just OpenVPN that does not trigger a restart of VBR, I put the below entries in my OpenVPN config to ensure VBR is triggered when the VPN goes down and then back up. Maybe this can help you.