The proxy appliance have multiple interface been used in the network.
The setup is a chaining proxy where there is a downstream proxy and upstream proxy. There is one interface connecting directly from the downstream and upstream proxy.
There is a requirement to force the traffic on the downstream proxy to use the interface that is connecting direct to the upstream proxy.
In this example, the downstream proxy have interface 1:0 been used for all the production traffic to forwards the traffic to the upstream proxy (using another network path) and interface 2:0 is the interface been used to connect direct to the upstream proxy.
Below is an example of the policy to achieve this:
client.address=Based_on_IP reflect_ip(10.10.10.10) forward("UpstreamProxyFwdHost")
condition=Based_on_UserGroup reflect_ip(10.10.10.10) forward("UpstreamProxyFwdHost")
define subnet Based_on_IP
10.2.3.5 10.6.7.8 ; can list individual IP addresses
126.96.36.199/24 188.8.131.52/24 ; or subnets
184.108.40.206-220.127.116.11 ; or an IP address range
2.3.*.* ; or IP address wildcards
define condition Based_on_UserGroup
"UpstreamProxyFwdHost" is the upstream proxy forwarding host.
The above policy contains two rules where the first one is based on condition on the client IP and the second rule is based on the user group.
The IP - 10.10.10.10 is the IP configured on the interface 2:0 in the downstream proxy.