Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759312AbXFSQya (ORCPT ); Tue, 19 Jun 2007 12:54:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752749AbXFSQyX (ORCPT ); Tue, 19 Jun 2007 12:54:23 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:15815 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752121AbXFSQyX (ORCPT ); Tue, 19 Jun 2007 12:54:23 -0400 Date: Tue, 19 Jun 2007 18:54:21 +0200 (CEST) From: Jan Engelhardt To: Marc Perkel cc: linux-kernel@vger.kernel.org Subject: Re: How would I do this? (expert tricks) OT In-Reply-To: <456863.7892.qm@web52512.mail.re2.yahoo.com> Message-ID: References: <456863.7892.qm@web52512.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 25 On Jun 19 2007 09:48, Marc Perkel wrote: > >I have a server with port 25 closed. I was to be able >to run a script every time someone tries to connect to >port 25, but from the outside the port remains closed. >I need the script that I'm going to run get the IP >address that tried to connect. > >I know it's off topic but it's part of an experiment >to stop spam. tcpdump -lni any port 25 iptables -p tcp --dport 25 -j NFQUEUE ... Jan -- - 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/