On 07/03/2012 11:02 AM, Tom Goerger wrote:
Hi,

I'm having problems setting up ClamAV to work in network mode.  The way I'm
envisioning things is I've got a machine running clamdscan on client, and
clamd running on server.  I've got clamd.conf on client set up to point at
the IP and port of server like so:

# TCP port address.
# Default: no
TCPSocket 3310

# TCP address.
# By default we bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
# Default: no
TCPAddr 134.84.1.1

I've got the server clamd.conf set up like this:

# TCP port address.
# Default: no
TCPSocket 3310

# TCP address.
# By default we bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
# Default: no
TCPAddr 127.0.0.1

I'm getting an error of "ERROR: TCP: bind() error: Cannot assign requested
address" with this setup.  The port is open to the client IP address on the
server.  I'm not sure what I've got wrong in the setup.  Should the server
just be in a local setup, with the client set to network pointing at its
IP?  Or should both the server and client be set up as network, with both
using the server's IP?  Something else?

Thanks for any help.  I just haven't been able to find much documentation
for the network mode.

Tom


Hi Tom,

Try setting the server to use it's IP address. Although you have opened the port, clamd is not listening on the address only the loopback address so no connection can be made from the client to the server's clamd engine.

You also do not state which machine is giving the ERROR: TCP: bind() error. Are there any errors generated from starting clamd and clamdscan on the server and client respectively?

Jim

--
Jim Preston



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to