WCCP intercept + Squid - Seeing WAN IP instead of true client IP
Hi folks, I have an 80F (6.4.6) configured to intercept HTTP traffic and forward to Squid via WCCP. Everything works, except one issue - all Squid sees is the WAN IP instead of the individual client machines. Fortinet has a kb article on how to set all this up, and I basically followed it to a T. The architecture/topology in their example is essentially the same as my environment: Outside zone (WAN - PAT'ed) Trusted zone (end client machines that will have HTTP intercepted) Restricted zone (where Squid resides) I have nat enabled on the wccp intercept policy, and turning off nat simply breaks http traffic for the end client machines. Oddly, the kb article even has a note that says "If the preferred behavior is not to deliver the traffic to user if the cache is not reachable, a simple trick is to disable natting on policy 3." Yet this simply does not work...? I'm at a loss, any help would be appreciated. Here are the relevant configs: Interface configs: edit "wan1" set vdom "root" set mode pppoe set type physical set role wan set snmp-index 1 set dns-server-override disable next edit "restricted" set vdom "root" set ip 10.10.10.1 255.255.255.0 set allowaccess ping set type hard-switch set role dmz set snmp-index 11 set wccp enable next edit "trusted_switch" set vdom "root" set ip 192.168.48.1 255.255.255.0 set allowaccess ping https ssh http set type hard-switch set device-identification enable set lldp-transmission enable set role lan set snmp-index 13 next Policy to intercept HTTP traffic: edit 26 set name "WCCP-Intercept-Trusted" set uuid 6f7674f8-0a6e-51ec-fbe0-ce5d0ddb17d5 set srcintf "trusted_zone" set dstintf "outside_zone" set srcaddr "trusted_switch address" set dstaddr "all" set action accept set schedule "always" set service "HTTP" set logtraffic all set wccp enable set nat enable next Policy on Trusted zone to allow other traffic: edit 1 set name "Trusted-to-Outside" set uuid 59618638-05d4-51ec-11c8-7da9ac447b72 set srcintf "trusted_zone" set dstintf "outside_zone" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "Allowed_Trusted_Services" set logtraffic all set nat enable next Policy to allow Squid out: edit 23 set name "Restricted-to-Outside" set uuid 8b29980a-06c3-51ec-600e-efda35307a42 set srcintf "restricted_zone" set dstintf "outside_zone" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ALL" set logtraffic all set nat enable next
