Hi everyone!
I install squid + c-icap + squidclamav on FreeBSD 13.0-RELEASE-p11, but
squid didn't connect to c-icap server on localhost:1344. When I check server with telnet I see:
So, when i try to use c-icap-client I see that:
Listening ports:
Check localhost addresses:
/etc/hosts file:
Ping localhost:
Everything fine!
And squid.conf also works only when I declared icap server as:
After all I try to exchange squidclamav with virus_scan service - the same result.
I twice recompiled c-icap with and without ipv6 support, nothing change!
Seems like c-icap server on my computer works only by ipv6 and doesn't work by ipv4. Can anyone help me?
Thanks and best wishes!
I install squid + c-icap + squidclamav on FreeBSD 13.0-RELEASE-p11, but
squid didn't connect to c-icap server on localhost:1344. When I check server with telnet I see:
Code:
root@host:~ # telnet localhost 1344
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Code:
root@host:/root# c-icap-client -s squidclamav
Connection to 'localhost:1344' failed/timedout
Failed to connect to icap server.....
Code:
root@host:/root# c-icap-client -i 127.0.0.1 -s squidclamav
Connection to '127.0.0.1:1344' failed/timedout
Failed to connect to icap server.....
Code:
root@host:/root# c-icap-client -i ::1 -s squidclamav
ICAP server:::1, ip:::1, port:1344
OPTIONS:
Allow 204: Yes
Allow 206: No
Preview: 1024
Keep alive: Yes
ICAP HEADERS:
ICAP/1.0 200 OK
Methods: RESPMOD, REQMOD
Service: C-ICAP/0.5.10 server - SquidClamav/Antivirus service
ISTag: "CI0001-1-squidclamav-10"
Transfer-Preview: * Options-TTL: 3600
Date: Thu, 21 Apr 2022 03:25:06 GMT
Preview: 1024
Allow: 204
X-Include: X-Client-IP, X-Server-IP, X-Authenticated-User, X-Authenticated-Groups
Encapsulated: null-body=0
Code:
root@host:~ # sockstat -ln | grep 1344
0 c-icap 907 5 tcp6 *:1344 *:*
0 c-icap 906 5 tcp6 *:1344 *:*
0 c-icap 799 5 tcp6 *:1344 *:*
Check localhost addresses:
/etc/hosts file:
Code:
::1 localhost localhost.[mydomain]
127.0.0.1 localhost localhost.[mydomain]
Code:
root@host:/etc# ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.088 ms
And squid.conf also works only when I declared icap server as:
Code:
icap_service service_avi_req reqmod_precache icap://[::1]:1344/squidclamav bypass=on
icap_service service_avi_resp respmod_precache icap://[::1]:1344/squidclamav bypass=off
I twice recompiled c-icap with and without ipv6 support, nothing change!
Seems like c-icap server on my computer works only by ipv6 and doesn't work by ipv4. Can anyone help me?
Thanks and best wishes!