FortiProxy
FortiProxy provides enterprise-class protection against internet-borne threats and Advanced Web Content Caching
rpillai
Staff
Staff
Article Id 403277
Description This article describes how to test FortiProxy as an ICAP server using open-source tools like the C-ICAP client library or tools built on top of it.
Scope FortiProxy v7.4 and v7.6.
Solution
  1. Configure FortiProxy as the local ICAP server.
 

FortiProxy_ICAP_Server_GUI.png

 

CLI: 

 

config icap local-server
    edit 1
        set interface "port1"
        set incoming-ip 192.168.100.170
        set srcaddr "all"
        config icap-service
            edit 1
                set name "Test"
                set dlp-profile "default"
                set av-profile "default"
                set webfilter-profile "default"
            next
        end
    next
end

 

  1. Install C-ICAP tools on Client machine(Windows or Linux):     In this example, Ubuntu is used as the test client.
  2. Download the EICAR text file from www.eicar.org for testing.
  3. Run the following command on the client:

 

c-icap-client -i 192.168.100.170 -s Test -f eicar.txt

 

Parameter explanation:

  • -i --> ICAP server name/IP.
  1. -s -->ICAP service configured on the Server.
  2. -f -->Send this file to the ICAP server.

 

  1. If configured correctly, the client will display a response similar to the following:

 

FortiProxy_ICAP_response.png

 

And the following FortiProxy log entry:

 

FortiProxy_ICAP_log.png

 

  1. This packet capture illustrates an ICAP RESPMOD request initiated by a C-ICAP client to FortiProxy:  The HTTP response body contains the standard EICAR test file, and FortiProxy's ICAP server analyzes the request and returns an ICAP response indicating detection and the corresponding action.

 

FortiProxy_ICAP_pcap.png

 

By following the steps above, administrators can validate FortiProxy's ICAP server functionality using the C-ICAP client and the standard EICAR test file.

 

Related documents: 

Admin Guide: Create or edit an ICAP local server on FortiProxy 

Technical Tip: How to troubleshoot ICAP 

 

Contributors