I have a query, I am working with a static route configuration, a router that has 2 ISPs connected and this in turn has 2-node routers connected to their respective lan.
The idea is that each node router goes out with an ISP and maintains communication with each other locally.
I did this with PBR and each node router comes out with its corresponding ISP, the drawback is when I try to establish a local communication between the node routers.
Packets that have to go to a node router are sent with the ISP
Guessing your using just 0.0.0.0/0 in the routing table used by each WAN path. So when PBR (policy based rules) selects the route table to use, based on a connection mark or IP range etc, it doesn’t use your main routing table, which likely has the local LAN routes. And would follow your next hop out the WAN has no idea about your local LAN subnet, so it drops at your ISP.
If so, two ways to fix:
add your LAN IP ranges to a PBR to select the “main” routing table before any other policy rules
add the LAN subsets to the each non-main routing table
Another tip to add on to this would be to set the dst.address in the mangle rule making the routeing to NOT the internal IP addresses so that only public connections get marked, this can be done by either clicking the box next to where you put the IP address in or putting a ! in frount of the IP address when using the terminal