Re: Get ip before accept

From: Buddy Lucas
Date: Sat Sep 25 2004 - 17:50:25 EST


On Sat, 25 Sep 2004 23:02:48 +0200, Stephan Dreyer
<stephan.dreyer@xxxxxxxxxxx> wrote:
> Hi
> I'm trying to get a client ip before calling accept
> Any ideas how?
> It should be possible to get ip from connection queue when switching to
> kernel space should it?
> If ip doesnt't match a given list i want to close the not fully established
> connection

Try netfilter/iptables:
http://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html


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