LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2002, 09:14 PM   #1
nixdisciple
Member
 
Registered: Jan 2002
Location: Miami, florida
Distribution: Red Hat 7.3
Posts: 55

Rep: Reputation: 15
Mac Addresses


Is there a way with iptables to retrieve someone mac address when they are snooping around or trying ot get into your machine? I know Black Ice does it but is there a way of doing this in Linux?
 
Old 06-17-2002, 12:16 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
I'm not sure how you'd get iptables to automatically log MAC addresses, but you can display your current ARP cache by typing "arp -a".

Regards
 
Old 06-20-2002, 06:08 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Not from a remote network.
IP protocol doesn't use or carry MAC addresses outside of your local network.

Regards,
Peter
 
Old 06-22-2002, 10:16 AM   #4
chens_83
Member
 
Registered: Dec 2001
Location: Adelaide , South Australia
Distribution: redhat 7.2, Debian , OpenBSD
Posts: 123

Rep: Reputation: 15
ip carries different hardware addresses from router to router
 
Old 06-22-2002, 11:54 PM   #5
sts_cat
LQ Newbie
 
Registered: Mar 2001
Location: US West Coast
Distribution: RH
Posts: 18

Rep: Reputation: 0
IP Tables can't do the job, but wouldn't a packet sniffing tool such as Snort or Ethereal yield the source MAC address?
 
Old 06-23-2002, 12:23 AM   #6
ry_Den
LQ Newbie
 
Registered: Jun 2002
Location: Brasil
Distribution: slackware, openbsd
Posts: 5

Rep: Reputation: 0
Cool

snort and ethereal would work if it was a local network, but not remotely.

ry_Den
 
Old 07-01-2002, 10:55 PM   #7
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Let me set the story right. IP has nothing to do with MAC address. All IP knows is dumb old 32-bit IP address. MAC address (at least for traditional LAN's) are handled by Ethernet.

Let me describe this better. I'm going to give you a little OSI theory.

OSI Model
-------------


Layer 7 -- Application Layer
Layer 6 -- Presentation Layer
Layer 5 -- Session Layer
Layer 4 -- Transport Layer
Layer 3 -- Network Layer
Layer 2 -- Data Link Layer
Layer 1 -- Physical Layer


I'm only going to deal with Layer 2

Layer 2 is the Data Link Layer, its the lowest connection to the wire (i.e. Cat-5 or telephone line, etc.) Its also the last layer of encapsulation before data is transmitted in its binary electrical form. It's also the Layer where Ethernet exists. Ethernet is where the notorious MAC address lives. An Ethernet frame contains both Sending and Receiving MAC addresses of devices on LAN. Notice I said LAN. Ethernet exists independents of IP and later TCP. All Ethernet does is tack on what it knows about where its going and wheres it's being sent from. (MAC addresses of sending and receiving hosts)

Now when network communication leaves your network or a few hops after that. Ethernet Frames get stripped off and sent further using more high level encapsulation such as HDLC on Serial Links. So when the Ethernet is stripped the MAC's get lost! So as I see it The MAC address you get on your LAN from the Internet are that of either your ISP or maybe even your own router.

Whew I know that wasn't clear.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iptables rules with MAC addresses ProtoformX Linux - Networking 5 04-28-2005 07:54 AM
can MAC addresses be tracked? m00 Linux - Security 7 11-16-2004 09:50 PM
can duplicate MAC addresses exist ? mehargags Slackware 3 03-22-2004 01:46 PM
Viewing MAC addresses ivanatora Linux - Networking 1 09-26-2003 12:47 PM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM

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

All times are GMT -5. The time now is 06:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration