Manual mode client-side policy
Add a manual mode policy to the client-side FortiGate unit from the CLI. The policy enables WAN optimization, sets wanopt-detection to off, and uses the wanopt-peer option to specify the server-side peer. The following example uses the default WAN optimization profile and also enables virus scanning using the default virus scanning profile.
config firewall policy
edit 2
set srcintf "internal"
set dstintf "wan1"
set srcaddr "client-subnet"
set dstaddr "server-subnet"
set action accept
set schedule "always"
set service "ANY"
set utm-status enable
set av-profile default
set profile-protocol-options default
set wanopt enable
set wanopt-detection off
set wanopt-profile "default"
set wanopt-peer "server"
next
end