Anti-Virus

使用 clamdscan 時如何指定 clamd 的 IP 地址?

  • November 9, 2011

我設置了一個單獨的主機clamd來處理病毒掃描,我想在將其投入生產之前對其進行測試。現在,雖然 MailScanner 的遠端配置clamd簡單明了,但我找不到任何有關如何使用clamdscan. 有人知道嗎?

看看clamdscan.py

$ clamdscan.py -h
Usage: clamdscan.py [OPTIONS] file [file , file , ...]
   -h,--help                         Show this help
   -V,--version                      Show clamd version and exit
   --quiet                           Only output error messages
   --no-summary                      Disable the summary at the end of scanning
   --remove                          Remove the infected files. Be careful!
   -t HOST,--host=HOST               The clamd host to connect to
   -p PORT,--port=PORT               The port to connect to on the clamd host
   -u SOCKET,--unix-socket=SOCKET    Path to the unix socket to use.
                                     NOTE: This overrides any setting for host
                                           and port.

引用自:https://serverfault.com/questions/329395