ip rule add from 192.168.6.187 table 10
ip route add default via 10.0.0.1 dev tun0 table 10
In previous versions,
ip rule add from 192.168.6.187 table 10
ip route add default via 10.0.0.1 dev tun0 table 10
You can let its 192.168.6.187 use the tun0 network card,
I updated openwrt to 5.4.65
9e049f9f782ec1b0e19adfbe9e3fd587b706498776771266e7480e70ea1c62af 9895.1 KB Mon Sep 14 22:37:27 2020
After that, appeared
ip rule add from 192.168.6.187 table 10
ip route add default via 10.0.0.1 dev tun0 table 10
Unable to connect.
This does not exist in the previous version.
After testing with my other equipment,
https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz
f23195b11fa16aa2e2ac4bdd9dfed771eba6b44bebec192b724fa6f436378299 8822.0 KB Tue Sep 15 15:04:03 2020
This bug also appeared。
I can't use it now
ip rule add from 192.168.6.187 table 10
ip route add default via 10.0.0.1 dev tun0 table 10
To determine whether a specific machine uses a virtual network card, and hope to solve it as soon as possible.
I rolled back the previous version, which is normal.