TCP Logs Why "Connection attempt to closed port"

Daniel Bye freebsd-questions at
Mon Sep 20 14:21:41 UTC 2010

On Mon, Sep 20, 2010 at 11:58:38AM +0100, David Southwell wrote:
> Large quantities of these errors constantly appear in log/
> Can anyone explain what is going on and whether any action is needed. If so 
> how to go about tracing the cause.

I think you probably have the net.inet.tcp.log_in_vain sysctl set to
something other than 0, causing the kernel to log these connection attempts
on ports where no service is listening. It is probably nothing to worry

If you want to turn these warnings off, check in your /etc/rc.conf for
`log_in_vain=1' or similar and remove it - the default, set in
/etc/defaults/rc.conf, is to not log these attempts. 


Daniel Bye
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list