From: Patrick Schaaf Subject: Re: LOG and DROP some specified packets in the same iptables rule Date: Mon, 2 May 2005 08:03:22 +0200 Message-ID: <20050502060322.GF25226@oknodo.bof.de> References: <000b01c54edb$28bdd120$aa0ba8c0@l7.com.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org Return-path: To: Vincent Content-Disposition: inline In-Reply-To: <000b01c54edb$28bdd120$aa0ba8c0@l7.com.tw> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org > Can I simply do the change in ipt_LOG.c like the following. > > --- ipt_LOG.c.old 2005-05-02 12:58:18.000000000 +0800 > +++ ipt_LOG.c 2005-05-02 12:58:45.000000000 +0800 > @@ -346,7 +346,7 @@ ipt_log_target(struct sk_buff **pskb, > printk("\n"); > spin_unlock_bh(&log_lock); > > - return IPT_CONTINUE; > + return NF_DROP; > } > > Will this change cause any side effect that I don't know? If you do this privately, I don't think so. Of course, nobody would take such a patch from you, as it breaks compatibility with each and every LOG using ruleset in current use. best regards Patrick