LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-13-2006, 09:23 AM   #1
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31
Blog Entries: 1

Rep: Reputation: 15
MAC-Level Filtering


Hello there,

I have been in the process of setting up a Mobile Ad hoc Network (MANET) testbed to research as to how we can improve a routing protocol called AODV. For this purpose, I have chosen the AODV_UU v0.8.1 implementation provided by Uppsala University. My testbed runs Fedora Core 5 having the kernel version 2.6-15. Now, in order to test whether the installed AODV routing protocol works fine, I need a MAC-filtering tool. The reason is that even when the nodes are within each other's range physically, I need a mac-flitering tool in order to make certain nodes filter out each other. With this I can have a multihop operation, and hence, it would be easy for me to check whether the routing protocol works as intended.

Having defined/explained the problem in hand, my question is whether anybody has heard of any such tool being in-built in any standard 2.6.x kernel.

BTW, has anybody come across "ebtables" ? If yes, can you please tell me how I can configure it so that I can filter out at the MAC-level.

Thanks in advance for taking your invaluable time to answer my question.

Best Regards,

Siva
 
Old 10-13-2006, 11:04 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Well, ebtables is one of the correct tools.
iptables has a lot of functionality too.

It requires some patching to be done to iptables & in the 2.4 kernel to get it working. 2.6 kernels already have it.
If you can install the ebtables package, then I'd say your standard kernel has been patched ok.

There's a manual included with the ebtables package and a website dedicated to it's use at http://ebtables.sourceforge.net and the HOWTO is http://ebtables.sourceforge.net/documentation.html#docs

Last edited by peter_robb; 10-13-2006 at 11:39 AM.
 
Old 10-15-2006, 09:54 AM   #3
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31

Original Poster
Blog Entries: 1

Rep: Reputation: 15
thanks peter for your information
 
Old 10-16-2006, 06:37 AM   #4
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31

Original Poster
Blog Entries: 1

Rep: Reputation: 15
ebtables on FC5

Dear Peter and all,

Initially I tried with iptables to filter-out MAC addresses. The intention is to check whether the installed (AODV) routing protocol works fine. It is obvious that whenever all the nodes (laptops) are within each others' range, then there is no need for a routing protocol. Hence, I wish to use a mac-filtering tool to enable multi-hop routing although the nodes are physically located closed each other. Consider the following set-up, where I wish to open a VoIP session between A & C via B. Note that A,B and C are within each others range.

A ------------------------ B-------------------------C
MAC Addr:00:16:6F:B4:01:91 00:16:6F:B4:17:62 00:16:6F:B4:04:4C
IP Addr : 192.168.20.1 192.168.20.2 192.168.20.3

I used the follwing "iptables" filtering option:

At node A, I typed the following:
$iptables -A INPUT -m mac --mac-source 00:16:6F:B4:04:4C -j DROP

At node B, I didn't type anything as my intention is to use it as a relaying node between A & C.

At node C, I typed the following:
$iptables -A INPUT -m mac --mac-source 00:16:6F:B4:01:91 -j DROP

My understanding is that I filter at the MAC-level, hence I should be A & C should be able to receive packets via B at the IP-layer level. Instead, neither A nor B were able to hear each other. Do you know why it is ?

Now I am trying with ebtables. It is installed in FC5 (kernel version 2.6-15). However, would you please let me know how to configure it as ebtables command does not work.

Please help me.

Cheers

Siva
 
Old 10-16-2006, 09:03 AM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Lots of routing and kernel filtering reasons for it not to work, eg rp-filter, source routing blocks, netfilter source & dest interfaces are the same, etc..

And the added complication of wireless association to APs..

Last edited by peter_robb; 10-16-2006 at 09:08 AM.
 
Old 10-17-2006, 02:52 AM   #6
Siva4Linux
Member
 
Registered: Sep 2006
Posts: 31

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thumbs up

Hello Peter,

Thanks for your reply. I have managed to solve the problem with the same "iptables" commands at A and C. The reason why it didn't work in my previous attempt was that I forgot to run the AODV daemon.

Now things work.

Cheers

Siva
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MAC Filtering eggoz Linux - Networking 1 06-11-2006 01:11 PM
MAC Filtering eggoz Linux - Networking 3 06-06-2006 02:20 AM
MAC address filtering in Slackware? houler Linux - Networking 9 05-12-2006 07:34 AM
mac address filtering gabsik Linux - Security 8 04-27-2006 08:23 AM
MAC address filtering firewall? gigaah Linux - Security 5 06-07-2004 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration