LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-07-2009, 05:26 PM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
How is MAC being obtained?


Hi,

I am trying to secure a wireless router which is also running my LAN. Until I can get some more hardware I have installed arno iptables firewall on my Slackware boxes and it seems to do most of what I want. All the boxes on the LAN can talk to each other except for the wireless nodes which come in on certain IPs. The wired boxes have dedicated IPs so they shouldn't be leased to wireless nodes. It seems like its working because the wired boxes can get to my webserver but the wireless nodes can't which is what I want.

I notice I can't protect against NMAP obtaining the MAC of the wired LAN boxes.

How is this information being obtained and can I create an iptables rule to stop it?

Thanks.

Last edited by Randux; 02-07-2009 at 05:29 PM.
 
Old 02-07-2009, 06:27 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Are the wired and wireless hosts on the same LAN?

EDIT: Actually, nevermind. If the MACs are visible they are obviously on the same LAN.

Last edited by win32sux; 02-07-2009 at 06:55 PM.
 
Old 02-07-2009, 11:45 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Randux
I notice I can't protect against NMAP obtaining the MAC of the wired LAN boxes.

How is this information being obtained and can I create an iptables rule to stop it?
MAC addresses are obtained as part of (and required for) layer 2 ethernet communication. See the OSI model enumeration for more details on that.

IIRC, iptables is able to perform layer 2 filtering, but I am not sure it will solve the problem you're describing.

If the goal is simply to cloak the true MAC addresses of the NICs in the wired boxes, another possibility may be to spoof their MAC addresses to something fictional of your choosing.
 
Old 02-08-2009, 04:23 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Hi guys, it was too late when I realized the MAC addresses are part of the packets. But it should go away once it crosses the NAT layer in the router, correct? Then it will be only the MAC of the router.

I started another thread and didn't get much feedback but what I am trying to do is to allow certain people to get to the internet using my wireless router but I want them off my LAN so that the inevitable hacking doesn't lead to compromising my LAN. All I have is one DSL router. I did all the obvious stuff like using a strong passphrase and having a list of authenticated MACs but I still don't trust it. Maybe I could set up a subnet for the wireless clients but I couldn't figure out how to do it on this router.

What's the correct way to accomplish this? I basically want to firewall my LAN but allow wireless clients to get only to the internet and not see my LAN at all. Do I just slap a hardware firewall behing my router and run all the LAN off of it? If these questions don't make sense it's because I haven't ever looked into networking. It just kind of happened badly as I got more boxes. Thank you.
 
Old 02-08-2009, 11:22 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Randux View Post
Hi guys, it was too late when I realized the MAC addresses are part of the packets. But it should go away once it crosses the NAT layer in the router, correct?
Technically they are part of the frames which the packets are encapsultaed in. And yes, they only work within the LAN, as frames are non-routable (unlike packets).

Quote:
I basically want to firewall my LAN but allow wireless clients to get only to the internet and not see my LAN at all. Do I just slap a hardware firewall behing my router and run all the LAN off of it?
That's definitely an option worth considering. BTW, if you could post the brand/model of the router it would be great, as we could look at its feature set.

Last edited by win32sux; 02-08-2009 at 11:27 AM.
 
  


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
Failed to update system: Authorisation could not be obtained exuroo Linux - Newbie 1 01-05-2009 06:40 AM
what kind of information can only be obtained as root? julietbjer Linux - Newbie 3 07-11-2008 09:14 PM
ip obtained from WAP, but cannot communicate Rhatlinux Linux - Hardware 2 02-14-2006 08:12 PM
can't use/locate some packages obtained by apt-get Andramalech Debian 4 05-21-2005 07:03 PM
killing pids obtained from ps command sanjith11 Programming 9 06-30-2004 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:00 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