← Back to all services
Security

ClamAV Antivirus Port & Configuration

clamav systemctl: clamav-daemon

Open-source antivirus engine. Scans for malware, viruses, trojans.

🔌 Default Port

3310
tcp
clamd socket (if TCP enabled)

📦 Installation Command

apt install clamav clamav-daemon clamav-freshclam

⚙️ Configuration Files

  • /etc/clamav/clamd.conf
  • /etc/clamav/freshclam.conf

📂 Default Directories

  • config: /etc/clamav
  • data: /var/lib/clamav
  • logs: /var/log/clamav
  • socket: /var/run/clamav/clamd.ctl

🔐 Default Credentials

Username:clamav
Password:N/A
💡 Runs as clamav user. No auth needed for local socket.

📌 Dependencies

clamav-freshclam (virus definitions)

⚠️ Conflicts

N/A Port: N/A

✅ Works With

amavispostfixrspamd

🛡️ Security Notes

Keep definitions updated (freshclam), schedule regular scans, integrate with mail server for email scanning

❓ Frequently Asked Questions

What port does ClamAV use?
ClamAV daemon (clamd) uses port 3310 for TCP connections.
How to update ClamAV signatures?
Run: sudo freshclam to update virus definitions.
Where is ClamAV config?
Config at /etc/clamav/clamd.conf and /etc/clamav/freshclam.conf.