I have my router working as server with Wireguard Server. I've disabled the "Global option" enable VPN Cascading because I need that connection 10.0.0.2 doesn't use the Wireguard Client interface from this router.
Okey, that's working fine.
Now I want to create 2 connections more: 10.0.0.3 and 10.0.0.4. I want to route those connections to Wireguard Client interface but I'm not able to get the right configuration.
I've tried to configure it in Network>Routing>IPv4 Rules like that (check images) but no one worked, I don't know if the "VPN Cascade" is what's denying me to apply this or I'm doing it wrong.
I already have some routing rules working but only for Lan.
It will be great if someone has some knowledge about this, ty.
You can change from "Global proxy" to policy based client routing from the alternative methods in the glinet gui.
You then add the Mac addresses of each client you want to route or not route depending on which mode you select.
So in your case you could use "VPN Policy Based on the Client Device" - select this method from the VPN Dashboard (you click where it says Global Proxy) to change the mode.
Then click "defined by MAC address" and choose the option "Use VPN" and add your devices. Now all the device you list will use the VPN and other devices won't.
I think that is what you are looking to achieve. All of this is done in the main glinet gui.
Network 1 is my main router, which is working as Wireguard Server, it's connected to a Wireguard Client too (my vpn provider).
I have some devices in Network 1 which don't use the Wireguard Client interface, they use the WAN interface.
Network 2 is connected using Wireguard Client to my Wireguard Server (Network 1), I have disabled the VPN Cascade mode because I need that those connections use the WAN interface.
Network 3 is connected like Network 2, but I need to route all trafic to the Wireguard Client interface, but I didn't found the solution.
Not only require to the 'Non-VPN Cascading' (i.e. WAN) for the network 2 devices, but also require to the 'VPN Cascading' (WG client) for the network 3 devices.
That is special requirement, and does not achieve in one router at same time.
So there's no solution I would need another router working as Wireguard Server.
Why it's doable? Because OpenWRT don't allow us to route where we want the traffic from WGServer connections or it's because GL-Inet router's config don't allow it since there's the "VPN Cascading option.
This requirement has nothing to do with whether or not there is 'VPN cascading' option.
Like you mentioned that, not only require to the 'Non-VPN Cascading' for some devices, but also require to the 'VPN Cascading' for another devices.
This is very special requirement, for someone like mostly users, probably it cannot be done in standard firmware, as it costs so many times to develop the iptables rule.