* MAC Filtering
@ 2004-01-14 23:58 Gopal Chandavarapu
0 siblings, 0 replies; 7+ messages in thread
From: Gopal Chandavarapu @ 2004-01-14 23:58 UTC (permalink / raw)
To: netfilter
Hi All,
A specific hardware and its cross compiler need 2.4.14 version of the
linux kernel. I have to do MAC filtering for these devices, so I found that
http://ebtables.sourceforge.net/documentation.html#whatdo
does MAC filtering. ----------- Good till now.
Problem : The problem is ebtables works only with linux kernel 2.4.22/23
and version 2.6.x
Question 1: Is there any other module like ebtables which does MAC
filtering and works with 2.4.14 kernel.
Question 2: The MAC filter module should be capable of filtering the
packets at run time.
That means that the filter should be able to ACCEPT all packets from MAC
address A for some time and upon users request at run time, it should be
able to take a new MAC address B and ACCEPT only from B and DROP/ACCEPT
packets from A.
Please let me know.
Thanks
Gopal.
^ permalink raw reply [flat|nested] 7+ messages in thread
* MAC filtering
@ 2005-06-29 11:56 varun_saa
2005-06-29 15:58 ` Gustavo Castro Puig
2005-06-29 20:30 ` /dev/rob0
0 siblings, 2 replies; 7+ messages in thread
From: varun_saa @ 2005-06-29 11:56 UTC (permalink / raw)
To: netfilter
Hello,
To allow a particular MAC, I plan use the rule
as sugested in my previous post :
iptables -A FORWARD -m mac --mac-source ff:ff:ff:ff:ff:ff -j ACCEPT.
Now how do you block all other MAC addresses in the first place.
How to write a rule for that ?
Thanks
Varun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MAC filtering
2005-06-29 11:56 MAC filtering varun_saa
@ 2005-06-29 15:58 ` Gustavo Castro Puig
2005-06-29 20:30 ` /dev/rob0
1 sibling, 0 replies; 7+ messages in thread
From: Gustavo Castro Puig @ 2005-06-29 15:58 UTC (permalink / raw)
To: netfilter
Varun:
I suggest you to check a project called "ebtables". May be of interest
to you: http://ebtables.sourceforge.net/
Anyway, I think you can do this to disable all other MAC addresses:
iptables -A FORWARD -m mac --mac-source ff:ff:ff:ff:ff:ff -j ACCEPT
iptables -A FORWARD -m mac --mac-source ! ff:ff:ff:ff:ff:ff -j DROP
But if you want to allow more MAC, then you may need to write a custom
chain and pass all that MAC into it.
I hope this help you.
> Hello,
> To allow a particular MAC, I plan use the rule
> as sugested in my previous post :
>
> iptables -A FORWARD -m mac --mac-source ff:ff:ff:ff:ff:ff -j ACCEPT.
>
> Now how do you block all other MAC addresses in the first place.
> How to write a rule for that ?
>
> Thanks
>
> Varun
>
>
>
Saludos,
Gustavo Castro Puig.
E-Mail: gcastro@gcp.com.uy
LPI Level-1 Certified (https://www.lpi.org/es/verify.html
LPID:LPI000042304 Verification Code: hp6re8w5qg )
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM/IT/ED dx s-:- a? C(+++)$ UL++++*$ P+ L++++(++)$ E--- W+++$ N+ o?
K- w O M V-- PS PE++(-) Y-(+) PGP+ t(++) 5+ X++ R tv+ b++(++++) DI+++
D++ G++ e++ h--- r y+++
------END GEEK CODE BLOCK------
Registered Linux User #69342
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MAC filtering
2005-06-29 11:56 MAC filtering varun_saa
2005-06-29 15:58 ` Gustavo Castro Puig
@ 2005-06-29 20:30 ` /dev/rob0
1 sibling, 0 replies; 7+ messages in thread
From: /dev/rob0 @ 2005-06-29 20:30 UTC (permalink / raw)
To: netfilter
On Wednesday 29 June 2005 06:56, varun_saa@vsnl.net wrote:
> To allow a particular MAC, I plan use the rule
> as sugested in my previous post :
>
> iptables -A FORWARD -m mac --mac-source ff:ff:ff:ff:ff:ff -j ACCEPT.
>
> Now how do you block all other MAC addresses in the first place.
> How to write a rule for that ?
iptables -A FORWARD -j DROP
--
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
^ permalink raw reply [flat|nested] 7+ messages in thread
* mac filtering
@ 2010-04-21 3:55 ratheesh k
2010-04-21 5:54 ` Marek Kierdelewicz
2010-04-21 7:49 ` Lars Nooden
0 siblings, 2 replies; 7+ messages in thread
From: ratheesh k @ 2010-04-21 3:55 UTC (permalink / raw)
To: netfilter
I have a client machine (say A ) connectected to a linux router . I
can browse internet without any problem .
In router , i can configure MAC address filters . If i configure A's
mac address should be disabled , A cannot access Router itself ? .
Question : What exactly mac address filter mean ? disabling router
access or disabling internet access ?
Thanks,
Ratheesh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mac filtering
2010-04-21 3:55 mac filtering ratheesh k
@ 2010-04-21 5:54 ` Marek Kierdelewicz
2010-04-21 7:49 ` Lars Nooden
1 sibling, 0 replies; 7+ messages in thread
From: Marek Kierdelewicz @ 2010-04-21 5:54 UTC (permalink / raw)
To: ratheesh k; +Cc: netfilter
Hi,
>
>I have a client machine (say A ) connectected to a linux router . I
>can browse internet without any problem .
>In router , i can configure MAC address filters . If i configure A's
>mac address should be disabled , A cannot access Router itself ? .
>Question : What exactly mac address filter mean ? disabling router
>access or disabling internet access ?
If you add following rule you'll block access to internet, not to
router:
iptables -A FORWARD -j DROP -m mac --mac --mac-source xx:xx:xx:xx:xx:xx
This rule will block access to the router without affecting access to
internet:
iptables -A INPUT -j DROP -m mac --mac --mac-source xx:xx:xx:xx:xx:xx
You can find nice diagram representing packet flow in netfilter here
(focus on green background if you're only routing, not bridgeing):
http://www.imagestream.com/~josh/PacketFlow.gif
Best regards,
Marek
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mac filtering
2010-04-21 3:55 mac filtering ratheesh k
2010-04-21 5:54 ` Marek Kierdelewicz
@ 2010-04-21 7:49 ` Lars Nooden
1 sibling, 0 replies; 7+ messages in thread
From: Lars Nooden @ 2010-04-21 7:49 UTC (permalink / raw)
To: ratheesh k; +Cc: netfilter
On 04/21/2010 06:55 AM, ratheesh k wrote:
> Question : What exactly mac address filter mean ? disabling router
> access or disabling internet access ?
The rule acts on what the user or that user's system has chosen at that
particular moment to use as its chosen string to identify the network
interface when contacting the router.
That kind of filtering is of very limited use in most activities.
/Lars
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-21 7:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 3:55 mac filtering ratheesh k
2010-04-21 5:54 ` Marek Kierdelewicz
2010-04-21 7:49 ` Lars Nooden
-- strict thread matches above, loose matches on Subject: below --
2005-06-29 11:56 MAC filtering varun_saa
2005-06-29 15:58 ` Gustavo Castro Puig
2005-06-29 20:30 ` /dev/rob0
2004-01-14 23:58 MAC Filtering Gopal Chandavarapu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).