Chapter 2 Advanced Routing for FortiOS 5.0 : Advanced Static Routing : Policy routing : Adding a policy route : Example policy route
  
Example policy route
Configure the following policy route to send all FTP traffic received at port1 out the port10 interface and to a next hop router at IP address 172.20.120.23. To route FTP traffic set protocol to 6 (for TCP) and set both of the destination ports to 21, the FTP port.
 
Protocol
6
Incoming interface
port1
Source address / mask
0.0.0.0/0.0.0.0
Destination address / mask
0.0.0.0/0.0.0.0
Destination Ports
From 21 to 21
Type of Service
bit pattern: 00 (hex) bit mask: 00 (hex)
Outgoing interface
port10
Gateway Address
172.20.120.23