Debian Codegraph @

notes/icap

raw
1 ICAP - Brief notes
2
3 ICAP REQMOD and RESPMOD now enabled
4
5 REQMOD service does url checking and any url modification and logs blocked requests.
6
7 RESPMOD service does content checking where REQMOD has not identified request
8 as an exception, and logs request.
9
10 Possible modes are:-
11
12 REQMOD only
13
14 REQMOD and RESPMOD (recommended)
15
16 RESPMOD only is not supported
17
18 REQMOD service communicates user, filtergroup and classification of request via
19 X-ICAP-E2G ICAP header
20
21 To enable uncomment icapport in e2guardian.conf
22
23 Default filter group can be set for ICAP using:
24 defaulticapfiltergroup
25
26 If user is passed from Squid, the user's filtergroup is now looked up
27 in the filtergroupslist. If no match or no user passed, will check any
28 ip-based auth plugin enabled to get the group.
29
30 Suggest these lines in squid.conf for testing:-
31
32 icap_enable on
33 icap_service service_req reqmod_precache bypass=0 icap://127.0.0.1:1344/request
34 icap_service service_resp respmod_precache bypass=0 icap://127.0.0.1:1344/response
35 adaptation_access service_req allow all
36 adaptation_access service_resp allow all
37 icap_send_client_ip on
38 icap_send_client_username on
39 adaptation_masterx_shared_names X-ICAP-E2G