From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ramin Dousti Subject: Re: Ip handling Date: Thu, 19 Jun 2003 00:02:49 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20030619040249.GB5744@cannon.eng.us.uu.net> References: <7C9884991ADAE0479C14F10C858BCDF5122DDB@alderaan.smgtec.com> <200306190151.40336.pc-secure@home.nl> <200306190201.21883.pc-secure@home.nl> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <200306190201.21883.pc-secure@home.nl> 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: Pascal Italiaander Cc: netfilter@lists.netfilter.org On Thu, Jun 19, 2003 at 02:01:21AM +0200, Pascal Italiaander wrote: > small errors were in it, fixed: > > iptables -I INPUT -p all -m mac --mac-source 10:20:30:40:05:06 -m \ > state --state NEW -j ACCEPT > iptables -I OUTPUT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT Just a performance note. Since a high percentage of the packets are ESTABLISHED,RELATED it is recommended to have this rule at the beginning of the rule set prior to any other rule and also "-p all" is redundant... Ramin > Pascal