-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi folks,

since several months I get the message "Can't create new socket: Address
family not supported by protocol" several times the day. It is only
freshclam that acts this wrong, no other tool/service has this problem.

The machine I use freshclam is IPv4 only; no IPv6 is compiled into the
kernel. Additionally the gai.conf say to prefer IPv4 over IPv6.

Unfortunately, the resolving of db.de.clamav.net (that I use, see below)
gives half IPv6 and half IPv6 addresses. There is a IPv6 only DNS name
but no IPv4 only DNS name.

I didn't also not find any solution to force freshclam to use IPv4 only.
- From that fact and that freshclam is running every hour, the change to
get the message is pretty high.

It is also notable that this has started several months ago.

Do you have any idea how to stop this annoying message without silenting
also real errors? Any idea how to force freshclam to behave like all
other software and just ignore the IPv6 addresses if there is no IPv6 on
this system?

Here is my config:
   ~> cat /etc/clamav/freshclam.conf
   # Automatically created by the clamav-freshclam postinst
   # Comments will get lost when you reconfigure the clamav-freshclam package

   DatabaseOwner clamav
   UpdateLogFile /var/log/clamav/freshclam.log
   LogVerbose false
   LogSyslog false
   LogFacility LOG_LOCAL6
   LogFileMaxSize 0
   LogRotate true
   LogTime true
   Foreground false
   Debug false
   MaxAttempts 5
   DatabaseDirectory /var/lib/clamav
   DNSDatabaseInfo current.cvd.clamav.net
   ConnectTimeout 30
   ReceiveTimeout 30
   TestDatabases yes
   ScriptedUpdates yes
   CompressLocalDatabase no
   SafeBrowsing true
   Bytecode true
   DatabaseMirror db.de.clamav.net
   DatabaseMirror database.clamav.net
   ~> cat /etc/cron.d/clamav-freshclam 
   59 */1 * * *    clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam 
--quiet >/dev/null
   ~> ifconfig
   eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
           inet 10.0.0.4  netmask 255.255.255.0  broadcast 10.0.0.255
           ether 52:54:00:41:3f:f6  txqueuelen 1000  (Ethernet)
           RX packets 22441291  bytes 31417154646 (29.2 GiB)
           RX errors 0  dropped 0  overruns 0  frame 0
           TX packets 27477983  bytes 27236010595 (25.3 GiB)
           TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

   lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
           inet 127.0.0.1  netmask 255.0.0.0
           loop  txqueuelen 1  (Local Loopback)
           RX packets 401467  bytes 338215821 (322.5 MiB)
           RX errors 0  dropped 0  overruns 0  frame 0
           TX packets 401467  bytes 338215821 (322.5 MiB)
           TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Note that the system has different IP outside, that is just the
internal IP. But the whole stack has no IPv6 at all and will not in
foreseeable future.

Regards
   Klaus
- -- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <kl...@ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAls3gdMACgkQpnwKsYAZ
9qyJwwv/dJtRgUGFFTCGsItG16jqGZWVQ2kb/vhI1a2JN3tLwUcuVxpdeftlyCFJ
YlYgc2veSF9qpdfsRSTB7ZThmqwXmzFzHKggkPW8hjL2OJrdLFTIJHt3Adk8UDVo
hXAX9tpUJUBk8rLNc1CXv+JRKs6d7lUnEpW3oqWego8m5dLCITIWTgv8IbbYGPOP
OmHQ81X9BuuFwZkoUld0AbeL3rQ2FBGT6zxguZ9DsTKQsca43zJ5K9ZW5JdJSnOc
2XLcoQSit/Ub8khGa8swfxe60f5d+lS3sUqwAQEKmjTcI7Xy9+U+R0clF2Qh4NTL
mFIOXhMQ24WobKKjuLxVABfVhzDBjIJIjm+CgHJP7sSiehacnNCz+kUoNSiQNZjQ
29OOa5kanLBnUXGo/psWI+mQntKlyP7raNPoNsSzD4k8fw2r362ApR96cjRlR1yt
mgQIs5Q99iq427F/NgrIe/exG1ojeRw5HJXgsMKYNFEM+4kj7W/N0Lxp8OK/0pdK
Fm913zmI
=AjJn
-----END PGP SIGNATURE-----
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to