Zerotier to bypass active Wireguard VPN

I have two routers in different countries, the border between which is through zerotier. For ease of understanding, I will use their router A and router B.

A - 10.144.1.1 via B - 10.144.2.2
B - 10.144.2.2 connect WG VPN A - 10.144.1.1

Both are pinged, reliable friend. Everything is fine, but when using VPN on router B, when enabling routing of router A through the gateway through router B, I get a loopback response.
My packet goes like this: router A via B (which in turn is connected to A via VPN WG), the corresponding forwarder appears again on A. When this exit to the external network with router A, I see the IP address of router A, instead of B. However, if you switch to the VPN time on router B, as expected, I go out to the world through the IP of router B.

Every time the VPN is turned on on router B, my zerotier router A remains to itself through router B.

I suggest, I need to use some tricky traffic rules mark using the sign ?
How can I make router A go out to the world from router B with zerotier?

I find answer there: How to bypass VPN on GL router - #10 by hansome

2 Likes