Introduction
Although it's possible to configure Clamd to listen to port 3310, by default our ClamAV package is not configured to listen to that port:
TCPSocket
NUMBER TCP port number the daemon will listen on.
Default: disabled
So the following configuration is considered a non-default customization and therefore we will not be able to assist with making these changes for you.
Additionally, the purpose of this guide is purely informational and as such cPanel, LLC will not assume responsibility for any potential adverse outcomes that might arise from its adoption. You may, therefore, wish to seek assistance from a qualified system administrator regarding any potential issues, as one would have the tools and knowledge in order to assist you.
Procedure
If you intend to make Clamd to listen to that port you can follow these steps:
- Uncomment this line in the below file:
grep -Ei 33 /usr/local/cpanel/3rdparty/etc/clamd.conf
#TCPSocket 3310
- Restart the service:
/scripts/restartsrv_clamd
- Confirm that Clamd is listening to that port:
lsof -c clamd -P | awk -F " " '{ print $9 }' | grep -Ei "(^*:)"
*:3310
*:3310