From mboxrd@z Thu Jan 1 00:00:00 1970 From: "JUSTIN GERRY" Subject: Re: Trying to setup two ethernet cards with two websites Date: Thu, 02 Jan 2003 15:25:21 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Return-path: Content-Disposition: inline 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" Content-Transfer-Encoding: 7bit To: JGERRY@butchers.com, netfilter@lists.netfilter.org To streamline the firewall I am writing, can I be safe to assume that: CLASS_A="10.0.0.0/8" IF1="eth0" IF2="eth1" (For example, I will drop anything claiming to be from a Class A Private Network on either interface) iptables -A INPUT -i $IF1 -s $CLASS_A -j DROP iptables -A INPUT -i $IF2 -s $CLASS_A -j DROP can be written in one line as: iptables -A INPUT -s $CLASS_A -j DROP This way by not specifying the interface (as it can come from either eth0 or eth1) it will stop completely drop any requests claiming to be from a class A private network? Many thanks, Justin