How to set up your FortiWeb : Configuring the network settings : Creating a policy route
 
Creating a policy route
FortiWeb allows you to configure policy routes that direct traffic away from a static route. This mechanism can be useful for the following tasks:
Diverting traffic for intrusion protection scanning (IPS).
Protecting web servers for different customers (for example, the clients of a Managed Security Service Provider).
Resolving asymmetric routing issues (see “Fixing asymmetric routing problems with policy-based routing”).
Policy routes direct traffic to a specific network interface and gateway based on the packet’s source and destination IP address. In addition, you can also specify the interface on which FortiWeb receives packets it applies this routing policy to.
In most cases, you use policy routes when FortiWeb is operating in reverse proxy mode. In this mode, FortiWeb opens its own HTTP connection to the back-end server (a server pool member) and does not transmit the client’s request to the pool member. Because the pool member’s reply contains no incoming interface information that FortiWeb can use to route the reply, you do not specify an incoming interface value to match. Instead, the policy route specifies a source address (for example, the virtual server’s IP address), outgoing interface, and gateway only.
In other operating modes (true transparent inspection, transparent inspection, and offline protection), specifying an incoming interface in the policy route configures FortiWeb to act as a router.
To create a policy route
1. Go to System > Network > Policy Route.
2. Complete the following settings:
Incoming Interface
Select the interface on which FortiWeb receives packets it applies this routing policy to.
When FortiWeb is operating in reverse proxy mode,
Source address/mask (IPv4/IPv6)
Enter the source IP address and network mask to match.
When a packet matches the specified address, FortiWeb routes it according to this policy.
Destination address/mask (IPv4/IPv6)
Enter the destination IP address and network mask to match.
When a packet matches the specified address, FortiWeb routes it according to this policy.
Outgoing Interface
Select the interface through which FortiWeb routes packets that match the specified IP address information.
Gateway Address (IPv4/IPv6)
Enter the IP address of the next-hop router where FortiWeb forwards packets that match the specified IP address information.
Ensure this router knows how to route packets to the destination IP address or forwards packets to another router with this information.
3. Click OK.
See also
Adding a gateway