From: Alex Satrapa Subject: Re: log Date: Tue, 30 Mar 2004 16:44:38 +1000 Sender: netfilter-admin@lists.netfilter.org Message-ID: <40691756.2060304@lintelsys.com.au> References: Reply-To: netfilter@lists.netfilter.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org IT Clown wrote: > will it log only for the default time period What do you mean by that? None of the rules that you add into a table will "expire" - you can rate limit using the appropriate rule. > or will it log > all packets as they come in and out untill you # it out? Every packet that gets to this rule (ie: is not rejected or allowed before this rule) will get logged. Typically, you would rate-limit the log message as follows: iptables -A FORWARD --protocol tcp -o ppp+ --destination-port 2766 -m limit --limit 10/hour --limit-burst 5 -j LOG --log-level warning --log-prefix "Deadhat " iptables -A FORWARD --protocol tcp -o ppp+ --destination-port 2766 -j DROP