From mboxrd@z Thu Jan 1 00:00:00 1970 From: Logechnik Alexandr Subject: Re: problem using MAC address. Date: Wed, 27 Oct 2004 13:41:54 +0000 Sender: netfilter-bounces@lists.netfilter.org Message-ID: <417FA5A2.9080204@itak.ua> References: <20041027095016.39480.qmail@web60408.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20041027095016.39480.qmail@web60408.mail.yahoo.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org ads nat wrote: >Hi, >I want block forwarding as follows : > >"iptables -I INPUT 1 -i eth1 -p tcp -m tcp --dport 25 >-m mac --mac-source 00:08:A1:53:BE:71 -d ! 10.0.0.2 -j >DROP" > >it does not work but when I try to do same thing with >rule >"iptables -D FORWARD -i eth1 -p tcp -m tcp --dport 25 >-s 192.168.0.42 -d ! 10.0.0.2 -j DROP" > >Is there any sytax error. > >Or Do I have to installed any additional module of >iptables. >I am using Redhat 9.0 Linux. >Please guide me. > >Thanks for support. > Sorry, for the fulless answer. You not need: iptables -I INPUT 1 -i eth1 -p tcp --dport 25 -m mac --mac-source 00:08:A1:53:BE:71 -j DROP You need: iptables -A FORWARD -p tcp --dport 25 -m --mac-source 00:08:A1:53:BE:71 -j DROP -- wbr, Logechnik Alexandr In God we trust, but something else must have X.509 certificate