From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alejandro Cabrera Obed" Subject: Forward rules Date: Fri, 28 Nov 2003 16:18:13 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <008301c3b5e4$640b9f00$0200a8c0@ale> Reply-To: "Alejandro Cabrera Obed" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: 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 lista (iptables)" Hello !!! I'm building my FORWARD table rules, and I want to implement this: "Drop all FORWARD packets by default and then accept only packets coming from LAN (192.168.0.0/24) with the related and established condition and leaving my external interface ($INET_IFACE)". Is the next ruleset according to what I want or can I change the order ??? $IPTABLES -P FORWARD DROP $IPTABLES -A FORWARD -s 192.168.0.0/24 -o $INET_IFACE -j ACCEPT $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT I suppose with this implementation I'm discarding packet forwarding coming from 127.0.0.0/24, 10.0.0.0/8 and 172.16.0.0/12 (because my default policy is DROP by default)....is it OK ??? Thousands of thanks :) Alejandro