Skip to main content
vshtaloja
Staff
Staff
November 28, 2025

Technical Tip: How to use URL Match + Forward Server to Forward Explicit Proxy Traffic to an Upstream Proxy

Description This article describes how to use URL Match + Forward Server on FortiProxy to forward specific Explicit Web Proxy traffic to an upstream proxy without performing DNS resolution locally.
Scope FortiProxy 7.4, FortiProxy 7.6.
Solution

An internal FortiProxy receives traffic on an Explicit Proxy port but cannot resolve certain external hostnames. These requests must be forwarded to an upstream proxy that can perform DNS resolution.

 

When the requested URL matches a URL Match rule, FortiProxy:

  • Skips DNS resolution.
  • Forwards the request directly to the configured forward-server.

 

If the URL does not match, FortiProxy attempts DNS resolution itself and may return an HTTP 504 DNS Timeout if resolution fails.

 

config web-proxy url-match
    edit "forward-upstream"
        set status enable
        set explicit-web-proxy all
        set type wildcard
        set url-pattern "*bbc.com"
        set forward-server "upstream-proxy"
    next
end

 

FortiProxy forwards matching requests to the upstream proxy without DNS checks, ensuring successful resolution and preventing DNS timeout errors.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT