From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Leslie Polzer Subject: Re: rules suggestion Date: Thu, 22 Jul 2004 08:23:15 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20040722082315.1ec8ce09.leslie.polzer@gmx.net> References: 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" To: netfilter@lists.netfilter.org Hello, On Thu, 22 Jul 2004 10:43:07 +0500 Askar Ali Khan wrote: > Or we are unnecessary repeating it on some chains/tables. Yes, here: > iptables -t nat -A PREROUTING -p TCP -s 0/0 -d 0/0 --dport 135:140 -j DROP > iptables -t nat -A PREROUTING -p UDP -s 0/0 -d 0/0 --dport 135:140 -j DROP You already have that in your INPUT chain. Always stick to the 'filter' table for filtering. I also think Windows uses only UDP (quite sure) on ports 137:138 (not sure). Why don't you go for a default DROP policy with ACCEPT rules? Kind regards, Leslie