Search squid archive

squid and c-icap configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guys,

This is what I want:
Browse the internet through a browser such that every url request goes
to squid proxy first and then the squid proxy sends it to c-icap
server. Finally the url should be logged into `/var/log/access.log`


This is what I have tried:
############################
c-icap.conf:
############################
PidFile /var/run/c-icap/c-icap.pid
CommandsSocket /var/run/c-icap/c-icap.ctl
Timeout 300
MaxKeepAliveRequests 100
KeepAliveTimeout 600
StartServers 3
MaxServers 10
MinSpareThreads     10
MaxSpareThreads     20
ThreadsPerChild     10
MaxRequestsPerChild  0
Port 1344
ServerAdmin you@your.address
ServerName YourServerName
TmpDir /var/tmp
MaxMemObject 131072
DebugLevel 1
Pipelining on
SupportBuggyClients off
ModulesDir /usr/local/lib/c_icap
ServicesDir /usr/local/lib/c_icap
TemplateDir /usr/local/share/c_icap/templates/
TemplateDefaultLanguage en
LoadMagicFile /usr/local/etc/c-icap.magic
RemoteProxyUsers off
RemoteProxyUserHeader X-Authenticated-User
RemoteProxyUserHeaderEncoded on
acl all src 0.0.0.0/0.0.0.0
LogFormat myFormat "%tl, %la %a %im %iu %is %huo"
ServerLog /usr/local/var/log/server.log
AccessLog /usr/local/var/log/access.log myFormat all
Service echo srv_echo.so

############################
squid.conf
############################
icap_enable on
icap_send_client_ip on
icap_send_client_username on
icap_client_username_header X-Authenticated-User
icap_preview_enable on
icap_preview_size 1024
icap_service service_req reqmod_precache bypass=1 icap://127.0.0.1:1344/request
adaptation_access service_req allow all
icap_service service_resp respmod_precache bypass=0
icap://127.0.0.1:1344/response
adaptation_access service_resp allow all


This is the result I have got by doing the above:
############################
/var/log/access.log
############################
19/May/2020:11:43:54 +0530, 127.0.0.1 127.0.0.1 UNKNOWN - 400 -
19/May/2020:11:45:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -
20/May/2020:00:44:56 +0530, 127.0.0.1 127.0.0.1 UNKNOWN - 400 -
20/May/2020:00:44:57 +0530, 127.0.0.1 127.0.0.1 UNKNOWN - 400 -
20/May/2020:00:45:00 +0530, 127.0.0.1 127.0.0.1 UNKNOWN - 400 -
20/May/2020:00:45:01 +0530, 127.0.0.1 127.0.0.1 UNKNOWN - 400 -
20/May/2020:00:45:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -
20/May/2020:00:48:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -
20/May/2020:00:51:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -
20/May/2020:00:54:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -
20/May/2020:00:57:15 +0530, 127.0.0.1 127.0.0.1 OPTIONS request 404 -


What am I doing wrong ? I should mention that

Thanks
Amiq
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux