Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-13-2006, 10:23 AM
|
#1
|
Member
Registered: Sep 2006
Posts: 31
Rep:
|
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
|
|
|
10-13-2006, 12:04 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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 12:39 PM.
|
|
|
10-15-2006, 10:54 AM
|
#3
|
Member
Registered: Sep 2006
Posts: 31
Original Poster
Rep:
|
thanks peter for your information
|
|
|
10-16-2006, 07:37 AM
|
#4
|
Member
Registered: Sep 2006
Posts: 31
Original Poster
Rep:
|
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
|
|
|
10-16-2006, 10:03 AM
|
#5
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
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 10:08 AM.
|
|
|
10-17-2006, 03:52 AM
|
#6
|
Member
Registered: Sep 2006
Posts: 31
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|