c-icap client based on Ubuntu 22.04 (Jammy) for testing and interacting with ICAP servers.
10K+
This image provides a lightweight c-icap client based on Ubuntu Jammy (22.04). It is designed to interact with ICAP servers for testing, debugging, or integrating ICAP-based content adaptation workflows.
The container includes the c-icap-client utility and the required dependencies from the Ubuntu Jammy repositories, offering a simple and reliable environment to send ICAP requests to compatible servers.
c-icap-client toolcd /usr/local/c-icap/bin && ./c-icap-clientCredentials:
rootrootdocker run -d \
--name ubuntu-c_icap_client \
--hostname ubuntu-c_icap_client \
-p 2022:22 \
--restart on-failure \
rschwend/ubuntu-c_icap_client:latest
docker pull rschwend/ubuntu-c_icap_client:latest
services:
ubuntu-c_icap_client:
image: rschwend/ubuntu-c_icap_client:latest
hostname: ubuntu-c_icap_client
container_name: ubuntu-c_icap_client
ports:
- "2022:22"
restart: on-failure
networks:
- ubuntu-c_icap_client
volumes:
- Transfer:/tmp
volumes:
Transfer:
external: true
networks:
ubuntu-c_icap_client:
driver: bridge
Optimized for copy&paste experience with SSH port forwarding enabled on port 2022.
The difference in the ICAP protocol (Internet Content Adaptation Protocol) lies in the point at which web content is inspected or modified during data transmission. It is distinguished between REQMOD (Request Modification) and RESPMOD (Response Modification):
-req)Usage Example:
c-icap-client -i 192.168.1.100 -p 1344 -s REQ-Mode -f /tmp/upload.pdf -req
-resp)Usage Example:
c-icap-client -i 192.168.1.100 -p 1344 -s interscan -f /tmp/download.exe -resp
| Scenario | Mode | Command |
|---|---|---|
| URL Filtering (Block before download) | -req | c-icap-client ... -req |
| Scan file upload | -req | c-icap-client ... -req |
| Scan file download | -resp | c-icap-client ... -resp |
| Virus/Malware scanning | -resp | c-icap-client ... -resp |
| Parameter | Description |
|---|---|
-h <host> | Specifies the ICAP server hostname or IP address (e.g., 192.168.1.100 or icap.example.com) |
-p <port> | Specifies the ICAP server port (default: 1344) |
-s <service> | Specifies the ICAP service name to be used (e.g., avscan, gw_rebuild, classification) |
-f <file> | Path to the file to be scanned or processed |
-req | Enables REQMOD (Request Mode) – scan HTTP requests before they reach the server |
-resp | Enables RESPMOD (Response Mode) – scan HTTP responses before they reach the client |
-v | Enables verbose output – shows detailed information during execution |
-d | Enables debug mode – displays debugging information for troubleshooting |
-w <size> | Sets preview size in bytes (maximum size of data to send for preview) |
-o <header> | Adds custom HTTP header to the request |
c-icap-client -i 192.168.1.100 -p 1344 -s REQ-Mode -f /tmp/upload.pdf -req
Simulates: Client uploads /tmp/upload.pdf → ICAP scans before upload to server
c-icap-client -i 192.168.1.100 -p 1344 -s interscan -f /tmp/download.exe -resp
Simulates: Server responds with file → ICAP scans before download to client
c-icap-client -i icap.example.com -p 1344 -s REQ-Mode -f /tmp/document.docx -req -v
c-icap-client -h icap.internal -p 1344 -s interscan -f /tmp/response-file.bin -resp -d
TrendAI related Filesecurity options and guidelines:
Content type
Image
Digest
sha256:ffe66a1ba…
Size
239 MB
Last updated
3 months ago
docker pull rschwend/ubuntu-c_icap_client