Created on
02-18-2025
09:57 PM
Edited on
02-19-2025
12:49 AM
By
Anthony_E
Description | This article describes how the FortiProxy web-proxy URL-match feature works, its impact on traffic handling, and the necessary firewall policy considerations. |
Scope | FortiProxy. |
Solution |
The URL match list in FortiProxy is used for two main purposes:
Example Configuration: Consider the following firewall policy for explicit web proxy traffic:
config firewall policy
A corresponding web-proxy URL-match configuration:
config web-proxy url-match
Behavior Without Web-Proxy URL-Match If no URL-match rule is applied, traffic flows normally through the explicit-web firewall policy. The log entry shows that traffic to fortinet.com is processed under the configured policy.
Below is a sample log:
date=2025-02-18 time=14:12:19 eventtime=1739916738215154029 tz="-0800" logid="0000000015" type="traffic" subtype="forward" level="notice" vd="root" srcip=2.2.2.2 srcport=65189 srcintf="port1" dstip=5.5.5.5 clientip=2.2.2.2 dstport=80 dstintf="port1" sessionid=785873094 proto=6 action="start" policyid=1 service="HTTP" trandisp="noop" url="http://fortinet.com/" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0" duration=0 sentbyte=0 rcvdbyte=0 sentpkt=0 rcvdpkt=0 appcat="unscanned"
Behavior With Web-Proxy URL-Match Once the URL-match rule is applied, FortiProxy redirects the traffic to the configured forward server. The log reflects that training.fortinet.com is forwarded, with a changed destination IP.
The following log illustrates the change:
date=2025-02-18 time=14:24:01 eventtime=1739917441381530770 tz="-0800" logid="0000000015" type="traffic" subtype="forward" level="notice" vd="root" srcip=2.2.2.2 srcport=49649 srcintf="port1" dstip=1.1.1.1 clientip=2.2.2.2 dstport=443 dstintf="port1" sessionid=785873275 proto=6 action="start" policyid=1 service="HTTPS" trandisp="noop" url="https://training.fortinet.com/" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0" duration=0 sentbyte=0 rcvdbyte=0 sentpkt=0 rcvdpkt=0 appcat="unscanned"
When a web-proxy URL-match rule is applied, FortiProxy modifies the destination IP of matched traffic to the configured forward server. This means that the original destination IP is replaced with the forward server’s IP, which may impact firewall policy matching.
As a result, firewall policies must be re-evaluated to ensure that the new destination is allowed. If the firewall policy is only configured to allow traffic to the original destination, the forwarded traffic might be blocked. |