Chapter 22 WAN Optimization, Web Cache, Explicit Proxy, and WCCP for FortiOS 5.0 : Web caching and SSL offloading : Example: Web caching of HTTP and HTTPS Internet content for users on an internal network : Configuration Steps - web‑based manager
  
Configuration Steps - web‑based manager
Use the following steps to configure the example configuration from the FortiGate web‑based manager.
To add HTTP web caching to a security policy
1. Go to Policy > Policy > Policy and add a security policy that allows all users on the internal network to access the Internet.
Policy Type
Firewall
Policy Subtype
Address
Incoming Interface
Internal
Source Address
all
Outgoing Interface
wan1
Destination Address
all
Schedule
always
Service
ALL
Action
ACCEPT
2. Select Enable NAT and select Use Destination Interface Address.
3. Select Enable Web cache.
4. Select OK.
To add HTTPS web caching
1. From the CLI enter the following command to add HTTPS web caching to the security policy.
Assume the index number of the policy is 5.
config firewall policy
edit 5
set webcache-https any
end
To cache HTTP traffic on port 80 and 8080 and HTTPS traffic on ports 443 and 8443
1. Go to Policy > Policy > Proxy Options and edit the default proxy options profile.
You could also add a new profile.
2. Under Protocol Port Mapping enable HTTP and under Inspection Ports enter 80,8080.
3. Under SSL Inspection Options enable HTTPS and under Inspection Ports enter 443,8443.
4. From the CLI, enter the following command to add the default proxy options profile to the firewall policy.
config firewall policy
edit 5
set utm-status enable
set profile-protocol-options default
end