Is it possible on Juniper or Cisco to configure PBR where it matches on an ingress interface AND a source IP address?
My scenario traffic flows are as follows:
Router1 > Router2 > WAN_Optimiser > Router2 > Firewall > Router2 > Router3
Both the WAN Optimiser and Firewall are in transparent mode and sit connected off Router2 on a single interface each.
I need to be able to have traffic come into router2, be directed to the WAN Optimiser, return to Router2, then be directed to the firewall, then be returned to Router2, before being router to its intended destination.
The rules would look something like for outgoing traffic
Source: 10.0.0.1/24
Dest: 20.0.0.1/24
Rule 1
match interface <interface connected to router1>
match ip range 10.0.0.0/24
then send to <interface connected to wan_opt>
Rule 2
match interface <interface connected to wan_opt>
match ip range 10.0.0.0/24
then send to <interface connected to firewall>