Chapter 1 What’s New for FortiOS 5.0 : WAN optimization and Web Caching : Policy-based WAN optimization configuration changes summary : Client side configuration summary : Security policies
  
Security policies
Two client side WAN optimization security policy configurations are possible: one for active-passive WAN optimization and one for manual WAN optimization.
Active/passive mode on the client side
config firewall policy
edit 2
set srcintf "internal"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ANY"
set utm-status enable <<< enable UTM
set av-profile default <<< select an antivirus profile
set profile-protocol-options default
set wanopt enable <<< enable WAN optimization
set wanopt-detection active <<< set the mode to active/passive
set wanopt-profile "default" <<< select the wanopt profile
next
end
Manual mode on the client side
config firewall policy
edit 2
set srcintf "internal"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ANY"
set utm-status enable <<< enable UTM
set av-profile default <<< select an antivirus profile
set profile-protocol-options default
set wanopt enable <<< enable WAN optimization
set wanopt-detection off <<< sets the mode to manual
set wanopt-profile "default" <<< select the wanopt profile
set wanopt-peer "server" <<< set the only peer to do wanopt with                        (required for manual mode)
next
end