Skip to contentSkip to conversation

--mac-dest matching

DISCUSSION Stephane Delcroix 2 participants 4 messages Sep 15, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
for a particular firewall, I need to match packet by mac-dest. I didnt find anything neither in netfilter doc nor in the kernel sources :(

Is there a patch or an extension for netfilter to do that?

regards,

Stephane

Signature · 1 line
Stephane Delcroix <[email protected]>
#1 lore raw
Quoted 10 lines · Stephane Delcroix

Hi,
for a particular firewall, I need to match packet by mac-dest. I didnt find anything neither in netfilter doc nor in the kernel sources :(

Is there a patch or an extension for netfilter to do that?

regards,

Stephane

on a routing gateway; a destination MAC match is irrelevant, as the destination MAC will always be that of the local machine (this pretty much applies to a standalone host as well).

destination MAC addresses are only really relevant to switches...

anyways--i'm guessing you're probably trying to setup some sort of bridge--in which case, you need "ebtables" which is available at:

http://ebtables.sourceforge.net/

and can match on destination MAC address.

my other guess would be maybe you're looking to match broadcasts/multicasts, in which case--the pkttype match may be of some interest to you.

-j

Signature · 1 line
Jason Opperisano <[email protected]>
#2 lore raw

Hi,

Indeed, I'm setting up a bridge on a network with multiples gateways. I need to set up port forwarding different for each gateway => need -- mac-dest.

I can eventually MARK packets with ebtables and filter with iptables later.
Maybe someone had done this before and give me more informations...

regards,

Stephane

Quoted 31 lines · Jason Opperisano
Quoted 10 lines · Stephane Delcroix

Hi,
for a particular firewall, I need to match packet by mac-dest. I didnt find anything neither in netfilter doc nor in the kernel sources :(

Is there a patch or an extension for netfilter to do that?

regards,

Stephane

on a routing gateway; a destination MAC match is irrelevant, as the destination MAC will always be that of the local machine (this pretty much applies to a standalone host as well).

destination MAC addresses are only really relevant to switches...

anyways--i'm guessing you're probably trying to setup some sort of bridge--in which case, you need "ebtables" which is available at:

http://ebtables.sourceforge.net/

and can match on destination MAC address.

my other guess would be maybe you're looking to match broadcasts/multicasts, in which case--the pkttype match may be of some interest to you.

-j

Signature · 1 line
Stephane Delcroix <[email protected]>
#3 lore raw
Quoted 5 lines · Stephane Delcroix

Hi,

Indeed, I'm setting up a bridge on a network with multiples gateways. I need to set up port forwarding different for each gateway => need -- mac-dest.

=> need ebtables.

Quoted 3 lines

I can eventually MARK packets with ebtables and filter with iptables later.
Maybe someone had done this before and give me more informations...

fair enough--i will bow out of this thread now.

-j

Signature · 1 line
Jason Opperisano <[email protected]>