babydr |
04-12-2021 05:32 PM |
First chance I've had time to test the c-ares library addition with curl .
Thank You all , the Local-Address capability functions well for me .
Code:
# freshclam --local-address=XXX.XXX.XXX.xxx
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *Loaded mirrors.dat:
Mon Apr 12 14:22:06 2021 -> * version: 1
Mon Apr 12 14:22:06 2021 -> * uuid: d2f866ca-6562-4830-9b50-ec5820d2d4ff
Mon Apr 12 14:22:06 2021 -> ClamAV update process started at Mon Apr 12 14:22:06 2021
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *Querying current.cvd.clamav.net
Mon Apr 12 14:22:06 2021 -> *TTL: 199
Mon Apr 12 14:22:06 2021 -> *fc_dns_query_update_info: Software version from DNS: 0.103.2
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *check_for_new_database_version: Local copy of daily found: daily.cvd.
Mon Apr 12 14:22:06 2021 -> *query_remote_database_version: daily.cvd version from DNS: 26138
Mon Apr 12 14:22:06 2021 -> daily database available for update (local version: 26134, remote version: 26138)
Current database is 4 versions behind.
Downloading database patch # 26135...
Mon Apr 12 14:22:09 2021 -> *Retrieving https://database.clamav.net/daily-26135.cdiff
Mon Apr 12 14:22:09 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:09 2021 -> *downloadFile: Download source: https://database.clamav.net/daily-26135.cdiff
Mon Apr 12 14:22:09 2021 -> *downloadFile: Download destination: ./clamav-62c1ded2a09844e3e08f1e78e85f0430.tmp
* Trying 104.16.218.84:443...
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
* CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Aug 15 00:00:00 2020 GMT
* expire date: Aug 15 12:00:00 2021 GMT
* subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xc8dab0)
> GET /daily-26135.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 12 Apr 2021 22:22:09 GMT
< content-type: application/octet-stream
< content-length: 16194
< set-cookie: __cfduid=d9def04df3de02df3584d7393076184ea1618266129; expires=Wed, 12-May-21 22:22:09 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Fri, 09 Apr 2021 11:10:00 GMT
< etag: "60703608-3f42"
< expires: Tue, 12 Apr 2022 22:15:07 GMT
< cache-control: public, max-age=31535578
< cf-cache-status: HIT
< age: 299107
< accept-ranges: bytes
< cf-request-id: 0969c69d99000042a54388f000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda0f5cd242a5-LAX
<
Time: 0.1s, ETA: 0.0s [========================>] 15.81KiB/15.81KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 297 lines and executed 297 commands
Downloading database patch # 26136...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26136.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source: https://database.clamav.net/daily-26136.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-dc372c9d5111e2c1f46a225e4e524b6f.tmp
* Trying 104.16.218.84:443...
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
* CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Aug 15 00:00:00 2020 GMT
* expire date: Aug 15 12:00:00 2021 GMT
* subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xcc93f0)
> GET /daily-26136.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 12981
< set-cookie: __cfduid=d7387b5156ec87754a3bac3ff3c40ffda1618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Sat, 10 Apr 2021 11:09:00 GMT
< etag: "6071874c-32b5"
< expires: Tue, 12 Apr 2022 22:17:35 GMT
< cache-control: public, max-age=31535725
< cf-cache-status: HIT
< age: 212902
< accept-ranges: bytes
< cf-request-id: 0969c69f0f0000d33e5c140000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda11ac1cd33e-LAX
<
Time: 0.1s, ETA: 0.0s [========================>] 12.68KiB/12.68KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 210 lines and executed 210 commands
Downloading database patch # 26137...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26137.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source: https://database.clamav.net/daily-26137.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-b93d41eccf4ad4267c1c82cbd044ca48.tmp
* Trying 104.16.219.84:443...
* Connected to database.clamav.net (104.16.219.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
* CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Aug 15 00:00:00 2020 GMT
* expire date: Aug 15 12:00:00 2021 GMT
* subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xca7eb0)
> GET /daily-26137.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 6959
< set-cookie: __cfduid=d2d28e366df467f44aeca0d33c0f68f281618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Sun, 11 Apr 2021 11:07:00 GMT
< etag: "6072d854-1b2f"
< expires: Tue, 12 Apr 2022 22:16:09 GMT
< cache-control: public, max-age=31535639
< cf-cache-status: HIT
< age: 126431
< accept-ranges: bytes
< cf-request-id: 0969c6a0040000366d39375000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda133837366d-LAX
<
Time: 0.1s, ETA: 0.0s [========================>] 6.80KiB/6.80KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 54 lines and executed 54 commands
Downloading database patch # 26138...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26138.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source: https://database.clamav.net/daily-26138.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-b4fbfe5c2343c38d49b2858ef9e8330f.tmp
* Trying 104.16.219.84:443...
* Connected to database.clamav.net (104.16.219.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
* CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Aug 15 00:00:00 2020 GMT
* expire date: Aug 15 12:00:00 2021 GMT
* subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xcc93f0)
> GET /daily-26138.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 16232
< set-cookie: __cfduid=dc03397863a0b8a60878ea8324cdd69771618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Mon, 12 Apr 2021 11:05:00 GMT
< etag: "6074295c-3f68"
< expires: Tue, 12 Apr 2022 22:16:53 GMT
< cache-control: public, max-age=31535683
< cf-cache-status: HIT
< age: 40094
< accept-ranges: bytes
< cf-request-id: 0969c6a03a0000058520bbc000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda138a4e0585-LAX
<
Time: 0.1s, ETA: 0.0s [========================>] 15.85KiB/15.85KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 244 lines and executed 244 commands
Mon Apr 12 14:22:11 2021 -> *updatedb: Running g_cb_download_complete callback...
Mon Apr 12 14:22:11 2021 -> *download_complete_callback: Download complete for database : /var/lib/clamav/tmp.4285473c3d/clamav-e92e3c61c0da77cee805fe64c61b2713.tmp-daily.cld
Mon Apr 12 14:22:11 2021 -> *download_complete_callback: fc_context->bTestDatabases : 1
Mon Apr 12 14:22:11 2021 -> *download_complete_callback: fc_context->bBytecodeEnabled : 1
Mon Apr 12 14:22:11 2021 -> Testing database: '/var/lib/clamav/tmp.4285473c3d/clamav-e92e3c61c0da77cee805fe64c61b2713.tmp-daily.cld' ...
Mon Apr 12 14:22:11 2021 -> Database test passed.
Mon Apr 12 14:22:11 2021 -> daily.cld updated (version: 26138, sigs: 3970005, f-level: 63, builder: raynman)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: daily.cld updated.
Mon Apr 12 14:22:12 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:12 2021 -> *check_for_new_database_version: Local copy of main found: main.cvd.
Mon Apr 12 14:22:12 2021 -> *query_remote_database_version: main.cvd version from DNS: 59
Mon Apr 12 14:22:12 2021 -> main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: main.cvd already up-to-date.
Mon Apr 12 14:22:12 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:12 2021 -> *check_for_new_database_version: Local copy of bytecode found: bytecode.cvd.
Mon Apr 12 14:22:12 2021 -> *query_remote_database_version: bytecode.cvd version from DNS: 333
Mon Apr 12 14:22:12 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: bytecode.cvd already up-to-date.
Mon Apr 12 14:22:12 2021 -> ^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.socket: No such file or directory
|