Explicit web proxy
Explicit web proxy can be configured on FortiGate for proxying HTTP and HTTPS traffic.
To deploy explicit proxy, individual client browsers can be manually configured to send requests directly to the proxy, or they can be configured to download proxy configuration instructions from a Proxy Auto-Configuration (PAC) file.
When explicit proxy is configured on an interface, the interface IP address can be used by client browsers to forward requests directly to the FortiGate. FortiGate also supports PAC file configuration.
To configure explicit web proxy in the GUI:
- Enable and configure explicit web proxy:
- Go to Network > Explicit Proxy.
- Enable Explicit Web Proxy.
- Select port2 as the Listen on Interfaces and set the HTTP Port to 8080.
- Configure the remaining settings as needed.
- Click Apply.
- Create an explicit web proxy policy:
- Go to Policy & Objects > Proxy Policy.
- Click Create New.
- Set Proxy Type to Explicit Web and Outgoing Interface to port1.
- Also set Source and Destination to all, Schedule to always, Service to webproxy, and Action to ACCEPT.
- Click OK to create the policy.
- Configure a client to use the FortiGate explicit proxy:
Set the FortiGate IP address as the proxy IP address in the browser, or use an automatic configuration script for the PAC file.
This example creates a basic policy. If required, security profiles can be enabled, and deep SSL inspection can be selected to inspect HTTPS traffic. |
To configure explicit web proxy in the CLI:
- Enable and configure explicit web proxy:
config web-proxy explicit set status enable set ftp-over-http enable set socks enable set http-incoming-port 8080 set ipv6-status enable set unknown-http-version best-effort end config system interface edit "port2" set vdom "vdom1" set ip 10.1.100.1 255.255.255.0 set allowaccess ping https ssh snmp http telnet set type physical set explicit-web-proxy enable set snmp-index 12 end next end
- Create an explicit web proxy policy:
config firewall proxy-policy edit 1 set uuid 722b6130-13aa-51e9-195b-c4196568d667 set proxy explicit-web set dstintf "port1" set srcaddr "all" set dstaddr "all" set service "webproxy" set action accept set schedule "always" set logtraffic all next end
- Configure a client to use the FortiGate explicit web proxy:
Set the FortiGate IP address as the proxy IP address in the browser, or use an automatic configuration script for the PAC file.
This example creates a basic policy. If required, security profiles can be enabled, and deep SSL inspection can be selected to inspect HTTPS traffic. |