@Sarv, as another option you may be able to use the Source Based Default Route if there are only a small number of VLANs (or static routes) on your MX. This works in the same way as a default (i.e. its only used if there isn't a more specific route) but takes precedence over the standard default out through the WAN port. Using that you could send certain VLANs/subnets to your optimization device, and then from the optimization device (assuming it changes the source IP address) it could then use the standard default route out through the MX. Just needs some clear thinking through of your traffic flows, both the outbound and inbound, and considering the priority of the routes when it hits the MX. Thinking this through, all of the default route options are really only going to work if the optimization devices build a tunnel between themselves, and its best if the subnets that the optimization devices are in is the only subnet that is advertised over the AutoVPN (or if you're not using AutoVPN in the case of Source Based Default Routes). If you're advertising other remote subnets over the AutoVPN then the traffic will always be routed directly into the AutoVPN the minute it hits the MX, rather than to the optimization device. You could always override this with static routes (which take priority over AutoVPN routes), but this may get overly complex to administer very quickly (depending on the size of your network).
... View more