Technical Tip: Web proxy forwarding server config between two FortiGates for internet access
| Description | This article describes how to set up internet access using a web proxy forwarding server. |
| Scope | FortiGate. |
| Solution | In this example, the network design is as follows: Internal network (10.151.0.0/20) ----- Port1 --- FortiGate-1 --- port3 ======= port1 --- FortiGate-2 --- (Proxy-Forwarder)---- port7 ---- Internet.
Note: The internet-facing interface on FortiGate-1 is port7.
For testing, the user with IP address 10.151.6.48 tries to browse some websites. Traffic from the client reaches port1 on FortiGate-1 and is forwarded out via the interface port3 10.135.5.107 (instead of port7 which is internet facing interface) due to the web proxy forwarder toward IP 10.135.5.108, which is the IP address of port1 on FortiGate-2, and FortiGate-2 forwards the traffic via the internet-facing interface port7 toward the internet.
Configs on FortiGate-1:
config system interface
config web-proxy explicit
config web-proxy forward-server
config firewall proxy-policy
FGT1 # get router info routing-table all Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
Routing table for VRF=0
config web-proxy explicit end
config system interface set vdom "root"
config firewall proxy-policy end
FGT2 # get router info routing-table all Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
Routing table for VRF=0
Here is a sample web log that shows traffic comes from FortiGate-1 10.135.5.107 and reach internet via port7 on FortiGate-2:
date=2026-01-21 time=16:45:40 eventtime=1769010340527303236 tz="+0100" logid="0000000010" type="traffic" subtype="forward" level="notice" vd="root" srcip=10.135.5.107 srcport=1176 srcintf="port1" srcintfrole="undefined" dstcountry="United States" srccountry="Reserved" dstip=151.101.195.5 dstport=443 dstintf="port7" dstintfrole="undefined" sessionid=1123196796 service="HTTPS" proxyapptype="web-proxy" proto=6 action="accept" policyid=1 policytype="proxy-policy" poluuid="d16f7724-9a00-51f0-47ed-4b159c684c62" policyname="explicit.proxy" trandisp="snat" transip=10.109.21.108 transport=12290 appcat="unscanned" duration=1754 wanin=6990 rcvdbyte=6990 wanout=7302 lanin=7524 sentbyte=7524 lanout=7062
Related article: Technical Tip: How to configure web proxy forwarding server (proxy chaining) |
