Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269433AbUIYWtK (ORCPT ); Sat, 25 Sep 2004 18:49:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269437AbUIYWtK (ORCPT ); Sat, 25 Sep 2004 18:49:10 -0400 Received: from rproxy.gmail.com ([64.233.170.207]:49397 "EHLO mproxy.gmail.com") by vger.kernel.org with ESMTP id S269433AbUIYWtH (ORCPT ); Sat, 25 Sep 2004 18:49:07 -0400 Message-ID: <5d6b657504092515493c5f73da@mail.gmail.com> Date: Sun, 26 Sep 2004 00:49:07 +0200 From: Buddy Lucas Reply-To: Buddy Lucas To: Stephan Dreyer Subject: Re: Get ip before accept Cc: linux-kernel@vger.kernel.org In-Reply-To: <1CBJgr-2AiaYq0@fwd01.sul.t-online.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1CBJgr-2AiaYq0@fwd01.sul.t-online.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 715 Lines: 21 On Sat, 25 Sep 2004 23:02:48 +0200, Stephan Dreyer 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/