From: Logechnik Alexandr <A.Logechnik@itak.ua>
To: netfilter@lists.netfilter.org
Subject: Re: problem using MAC address.
Date: Wed, 27 Oct 2004 13:41:54 +0000 [thread overview]
Message-ID: <417FA5A2.9080204@itak.ua> (raw)
In-Reply-To: <20041027095016.39480.qmail@web60408.mail.yahoo.com>
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
next prev parent reply other threads:[~2004-10-27 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 9:50 problem using MAC address ads nat
2004-10-27 12:57 ` Ложечник Александр
2004-10-27 13:24 ` Jason Opperisano
2004-10-27 13:41 ` Logechnik Alexandr [this message]
2004-10-27 11:14 ` ads nat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=417FA5A2.9080204@itak.ua \
--to=a.logechnik@itak.ua \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.