Re: Selectively refusing TCP connections

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 23 May 2001 19:31:32 +0100 (BST)


> Is there any mechanism in Linux for refusing incoming TCP connections?

Not unless Dave added one I dont know about

> I'd like to be able to fetch the next incoming connection on a listen
> queue, and selectively accept or reject it based on the IP address of the

By the time you are notified the connection has completed. Also because we
use syn cookies you don't actually know about pending connections because the
state is all kept on the client

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/