Re: How to disable logging of certain packets

From: Marcus Lauer (reply@via.newsgroup)
Date: 01/31/03


From: Marcus Lauer <reply@via.newsgroup>
Date: Thu, 30 Jan 2003 18:41:43 -0800

Smitty wrote:

> How would I set iptables to not log udp packets to port 137 which is the
> ms netbios port?
> Smitty

     Find the rule in your firewall script which is logging udp packets,
then add this rule (or the equivalent) just before it:

iptables -A INPUT -p udp --destination-port 137 -j DROP (or REJECT)

In other words, create a rule which drops/rejects the packet without logging
it, and make sure that it applies first.

                                                            Marcus



Relevant Pages