[QClamAV] [0.103.2.1]

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

[QClamAV] [0.103.2.1]

Post by yanuk »

Found this in the repo but not documented here so I thought I'll start a new thread for this
https://qnapclub.eu/en/qpkg/1091
All thanks to Stephane our tireless qpkg maker! Thank you!

Works and easy to configure.
I've added additional malware definition from LMD into /opt/ClamAV/etc/freshclam.conf (to the end of the file)

Code: Select all

DatabaseCustomURL http://www.rfxn.com/downloads/rfxn.ndb
DatabaseCustomURL http://www.rfxn.com/downloads/rfxn.hdb
DatabaseCustomURL http://www.rfxn.com/downloads/rfxn.yara
Last edited by yanuk on Mon Aug 22, 2022 3:28 pm, edited 2 times in total.
TS451
TS453
TVS-682
erictw
First post
Posts: 1
Joined: Fri Apr 16, 2021 11:56 am

Re: [QClamAV] [0.103.1]

Post by erictw »

I can't install on my qnap (TS-220 QTS4.3.3.1432)
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: [QClamAV] [0.103.1]

Post by dolbyman »

yes..no x19 kirkwood version for download
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [QClamAV] [0.103.1]

Post by QNAP_Stephane »

oops sorry yes forgot to publish it here..

it is for moment only a prerelease, no armv5 for moment du lack of time and require a recent gcc (may be a chance to cross compile it with MUSL Toolchain, but i need more time fir that)
no sure if it can be a replacement for the actual firmware version to bring a more easier configuration setup.
it actally by default scan all in the /share path
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
Skeptical.me
Easy as a breeze
Posts: 428
Joined: Sun Jun 05, 2016 8:58 am
Location: Australia

Re: [QClamAV] [0.103.1]

Post by Skeptical.me »

Is there a Command Line interface to this? I notice in the processes that clamscan, and clamd are working, but I have no idea if viruses are found, or where the quarantine folder is.
QNAP TS-253Be 2 x WD Red 6TB RAID1, & 1 x WD Ext. 6TB, QTS: 4.5.3.1670

Plex, Radar, Sonarr, Lidarr, NZBGet, NZBHydra 2, Container Station
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [QClamAV] [0.103.1]

Post by yanuk »

You can run command lines from the binaries in /opt/ClamAV/bin
TS451
TS453
TVS-682
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [QClamAV] [0.103.1]

Post by yanuk »

Not sure why, but my QClamAV seem to stop running after a few days.

So I wrote a script to restart it whenever it stops and put it in crontab that executes every 5 mins

Code: Select all

#!/bin/bash

if  [[ $(lsof -i :3318 | grep -i clamd | wc -l) -eq 0 ]]; then
    /etc/init.d/ClamAV.sh start
     /sbin/log_tool --append "QClamAV was down, restarted." --type=1
fi
save the file to somewhere permanent like /share/Download/checkav.sh and chmod +x checkav.sh
point your crontab there and it will restart whenever we don't find clamd at port 3318. change 3318 to any other ports you use.

Edit: added an alert to QNAP notifications to give a Warning that QClamAV was detected to be down and started up.
TS451
TS453
TVS-682
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [QClamAV] [0.103.2.1]

Post by yanuk »

Hi @QNAP_Stephane I upgraded o 0.103.2.1 and starting clamd now produces a lot of warnings

Code: Select all

.
.
.
LibClamAV Warning: cli_loadyara: YARA.gate_php_js uses PCREs but support is disabled
LibClamAV Warning: load_oneyara: clamav cannot support 1 input strings, skipping YARA.gate_php_js
LibClamAV Warning: cli_loadyara: YARA.Backdoor_PHP_WPVCD_TempExecution uses PCREs but support is disabled
LibClamAV Warning: load_oneyara: clamav cannot support 1 input strings, skipping YARA.Backdoor_PHP_WPVCD_TempExecution
LibClamAV Warning: cli_loadyara: YARA.Backdoor_PHP_WPVCD_DivCodeName uses PCREs but support is disabled
LibClamAV Warning: load_oneyara: clamav cannot support 1 input strings, skipping YARA.Backdoor_PHP_WPVCD_DivCodeName
LibClamAV Warning: cli_loadyara: YARA.Backdoor_PHP_WPVCD_Deployer uses PCREs but support is disabled
.
.
.
Mon Aug 22 15:46:50 2022 -> !LOCAL: Socket file /tmp/Qclamd.socket is in use by another process.
and clamd doesn't load. is there any dependencies we need to install before this?
TS451
TS453
TVS-682
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [QClamAV] [0.103.2.1]

Post by yanuk »

hi @QNAP_Stephane Any intention to update this to v1.3?
TS451
TS453
TVS-682
User avatar
Toxic17
Ask me anything
Posts: 6468
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [QClamAV] [0.103.2.1]

Post by Toxic17 »

all of Stephane's current projects are on https://www.myqnap.org/ I suggest you ask on the myqnap discord server. anything on qnapclub is unsupported.
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
Post Reply

Return to “Community Apps”