All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables mac destination filtering
@ 2005-04-28  9:39 Thomas Turquois
  2005-04-28  9:55 ` Seferovic Edvin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Thomas Turquois @ 2005-04-28  9:39 UTC (permalink / raw)
  To: netfilter

Hi,

I would like to know why it's not possible to filter on mac destination
address with iptables.

Thanks.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: iptables mac destination filtering
  2005-04-28  9:39 iptables mac destination filtering Thomas Turquois
@ 2005-04-28  9:55 ` Seferovic Edvin
  2005-04-28  9:57 ` Michael Tautschnig
  2005-04-28 10:13 ` Filip Sneppe
  2 siblings, 0 replies; 9+ messages in thread
From: Seferovic Edvin @ 2005-04-28  9:55 UTC (permalink / raw)
  To: netfilter

Hi,

I suppose it is because you do NOT know the destination MAC address. The
dest MAC address is found out first when the packets get out of iptables and
go to the NIC. Besides - you cannot find out the MAC address of the host
that is reachable over i.e. 3 hops. Recall the OSI layer system and it
should be clear. 

I think I am not wrong here. If so, please correct me.

Regards,

Edvin Seferovic

-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Thomas Turquois
Sent: Donnerstag, 28. April 2005 11:40
To: netfilter@lists.netfilter.org
Subject: iptables mac destination filtering

Hi,

I would like to know why it's not possible to filter on mac destination
address with iptables.

Thanks.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
  2005-04-28  9:39 iptables mac destination filtering Thomas Turquois
  2005-04-28  9:55 ` Seferovic Edvin
@ 2005-04-28  9:57 ` Michael Tautschnig
  2005-04-28 11:10   ` Tobias DiPasquale
  2005-04-28 10:13 ` Filip Sneppe
  2 siblings, 1 reply; 9+ messages in thread
From: Michael Tautschnig @ 2005-04-28  9:57 UTC (permalink / raw)
  To: Thomas Turquois; +Cc: netfilter

> Hi,
> 
> I would like to know why it's not possible to filter on mac destination
> address with iptables.
>

Could you please explain, why one would do that? IMHO the only possible use is
an interface in promiscous mode.

Thanks,
Michael


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
       [not found] <200504280955.j3S9tYSQ029850@sunny.fnst.com.cn>
@ 2005-04-28 10:03 ` Yu Zhiguo
  2005-04-28 10:14   ` Seferovic Edvin
  0 siblings, 1 reply; 9+ messages in thread
From: Yu Zhiguo @ 2005-04-28 10:03 UTC (permalink / raw)
  To: edvin.seferovic, netfilter

Hello,

    For simply, this is because netfilter is working on IP layer.


----- Original Message ----- 

> Hi,
> 
> I suppose it is because you do NOT know the destination MAC address. The
> dest MAC address is found out first when the packets get out of iptables and
> go to the NIC. Besides - you cannot find out the MAC address of the host
> that is reachable over i.e. 3 hops. Recall the OSI layer system and it
> should be clear. 
> 
> I think I am not wrong here. If so, please correct me.
> 
> Regards,
> 
> Edvin Seferovic
> 
> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Thomas Turquois
> Sent: Donnerstag, 28. April 2005 11:40
> To: netfilter@lists.netfilter.org
> Subject: iptables mac destination filtering
> 
> Hi,
> 
> I would like to know why it's not possible to filter on mac destination
> address with iptables.
> 
> Thanks.
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
  2005-04-28  9:39 iptables mac destination filtering Thomas Turquois
  2005-04-28  9:55 ` Seferovic Edvin
  2005-04-28  9:57 ` Michael Tautschnig
@ 2005-04-28 10:13 ` Filip Sneppe
  2 siblings, 0 replies; 9+ messages in thread
From: Filip Sneppe @ 2005-04-28 10:13 UTC (permalink / raw)
  To: Thomas Turquois; +Cc: netfilter

Hi,

On 4/28/05, Thomas Turquois <tturquois@erasme.org> wrote:
> I would like to know why it's not possible to filter on mac destination
> address with iptables.

It's not possible with iptables since it works on the IP layer and higher,
but have a look at "ebtables", and maybe bridge-netfilter and arptables:

http://ebtables.sourceforge.net/

Regards,
Filip


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: iptables mac destination filtering
  2005-04-28 10:03 ` Yu Zhiguo
@ 2005-04-28 10:14   ` Seferovic Edvin
  0 siblings, 0 replies; 9+ messages in thread
From: Seferovic Edvin @ 2005-04-28 10:14 UTC (permalink / raw)
  To: netfilter

Hi,

that is also what I wanted to say ;) Although netfilter is working on IP
layer, packages that come in, contain the source MAC address of the sender
so that is why for example the source MAC filtering works... right?

Regards,

Edvin Seferovic

-----Original Message-----
From: Yu Zhiguo [mailto:yuzg@nanjing-fnst.com] 
Sent: Donnerstag, 28. April 2005 12:04
To: edvin.seferovic@kolp.at; netfilter@lists.netfilter.org
Subject: Re: iptables mac destination filtering

Hello,

    For simply, this is because netfilter is working on IP layer.


----- Original Message ----- 

> Hi,
> 
> I suppose it is because you do NOT know the destination MAC address. The
> dest MAC address is found out first when the packets get out of iptables
and
> go to the NIC. Besides - you cannot find out the MAC address of the host
> that is reachable over i.e. 3 hops. Recall the OSI layer system and it
> should be clear. 
> 
> I think I am not wrong here. If so, please correct me.
> 
> Regards,
> 
> Edvin Seferovic
> 
> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Thomas
Turquois
> Sent: Donnerstag, 28. April 2005 11:40
> To: netfilter@lists.netfilter.org
> Subject: iptables mac destination filtering
> 
> Hi,
> 
> I would like to know why it's not possible to filter on mac destination
> address with iptables.
> 
> Thanks.
> 
> 
> 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
       [not found] <200504281014.j3SAEgpi030006@sunny.fnst.com.cn>
@ 2005-04-28 10:27 ` Yu Zhiguo
  0 siblings, 0 replies; 9+ messages in thread
From: Yu Zhiguo @ 2005-04-28 10:27 UTC (permalink / raw)
  To: edvin.seferovic, netfilter

Hello,

    I think so ;)

----- Original Message ----- 



> Hi,
> 
> that is also what I wanted to say ;) Although netfilter is working on IP
> layer, packages that come in, contain the source MAC address of the sender
> so that is why for example the source MAC filtering works... right?
> 
> Regards,
> 
> Edvin Seferovic
> 
> -----Original Message-----
> From: Yu Zhiguo [mailto:yuzg@nanjing-fnst.com] 
> Sent: Donnerstag, 28. April 2005 12:04
> To: edvin.seferovic@kolp.at; netfilter@lists.netfilter.org
> Subject: Re: iptables mac destination filtering
> 
> Hello,
> 
>     For simply, this is because netfilter is working on IP layer.
> 
> 
> ----- Original Message ----- 
> 
> > Hi,
> > 
> > I suppose it is because you do NOT know the destination MAC address. The
> > dest MAC address is found out first when the packets get out of iptables
> and
> > go to the NIC. Besides - you cannot find out the MAC address of the host
> > that is reachable over i.e. 3 hops. Recall the OSI layer system and it
> > should be clear. 
> > 
> > I think I am not wrong here. If so, please correct me.
> > 
> > Regards,
> > 
> > Edvin Seferovic
> > 
> > -----Original Message-----
> > From: netfilter-bounces@lists.netfilter.org
> > [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Thomas
> Turquois
> > Sent: Donnerstag, 28. April 2005 11:40
> > To: netfilter@lists.netfilter.org
> > Subject: iptables mac destination filtering
> > 
> > Hi,
> > 
> > I would like to know why it's not possible to filter on mac destination
> > address with iptables.
> > 
> > Thanks.
> > 
> > 
> > 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
  2005-04-28  9:57 ` Michael Tautschnig
@ 2005-04-28 11:10   ` Tobias DiPasquale
  2005-04-30  7:18     ` George Alexandru Dragoi
  0 siblings, 1 reply; 9+ messages in thread
From: Tobias DiPasquale @ 2005-04-28 11:10 UTC (permalink / raw)
  To: netfilter

On 4/28/05, Michael Tautschnig <michael.tautschnig@zt-consulting.com> wrote:
> Could you please explain, why one would do that? IMHO the only possible use is
> an interface in promiscous mode.

Not really. I know of a project that wanted this functionality in
order to be able to determine if the next hop was terminal, and if so,
do some IDS scanning on it. This was in the context of AODV-assembled
wireless LANs.

--
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iptables mac destination filtering
  2005-04-28 11:10   ` Tobias DiPasquale
@ 2005-04-30  7:18     ` George Alexandru Dragoi
  0 siblings, 0 replies; 9+ messages in thread
From: George Alexandru Dragoi @ 2005-04-30  7:18 UTC (permalink / raw)
  To: Tobias DiPasquale; +Cc: netfilter

Use arptables for that, like

arptables -A INPUT --src-mac <mac> --opcode 1 -j DROP
arptables -A OUTPUT --dst-mac <mac> --opcode 1 -j DROP

This way that mac won't know your mac address and won't be able to
comunicate with you. But, a "very" good enough firewall, it is not
necesary to filter destination mac, source mac is enough, arptables is
good to stop somebody DDOS you (if he is in same L2 with you).

On 4/28/05, Tobias DiPasquale <codeslinger@gmail.com> wrote:
> On 4/28/05, Michael Tautschnig <michael.tautschnig@zt-consulting.com> wrote:
> > Could you please explain, why one would do that? IMHO the only possible use is
> > an interface in promiscous mode.
> 
> Not really. I know of a project that wanted this functionality in
> order to be able to determine if the next hop was terminal, and if so,
> do some IDS scanning on it. This was in the context of AODV-assembled
> wireless LANs.
> 
> --
> [ Tobias DiPasquale ]
> 0x636f6465736c696e67657240676d61696c2e636f6d
> 
> 


-- 
Bla bla


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-30  7:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-28  9:39 iptables mac destination filtering Thomas Turquois
2005-04-28  9:55 ` Seferovic Edvin
2005-04-28  9:57 ` Michael Tautschnig
2005-04-28 11:10   ` Tobias DiPasquale
2005-04-30  7:18     ` George Alexandru Dragoi
2005-04-28 10:13 ` Filip Sneppe
     [not found] <200504280955.j3S9tYSQ029850@sunny.fnst.com.cn>
2005-04-28 10:03 ` Yu Zhiguo
2005-04-28 10:14   ` Seferovic Edvin
     [not found] <200504281014.j3SAEgpi030006@sunny.fnst.com.cn>
2005-04-28 10:27 ` Yu Zhiguo

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.