From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: Logging MAC
Date: Fri, 21 May 2004 14:53:02 +0100 [thread overview]
Message-ID: <200405211453.02935.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <5390820828.20040521103958@alternativa.com.br>
On Friday 21 May 2004 2:39 pm, Marcelus Trojahn wrote:
> Folks,
>
> I want to know if there is a way to the LOG
> target logs the MAC address of the connection too...
The LOG target does log the MAC address of the connection. Here's an example
of a packet from my system a minute ago (IPs obscured):
May 21 14:47:15 Firewall kernel: IN=eth0 OUT=
MAC=00:05:5d:63:88:b8:00:d0:58:e0:04:cf:08:00 SRC=253.47.80.398
DST=253.121.341.14 LEN=48 TOS=0x00 PREC=0x00 TTL=115 ID=25492 DF PROTO=TCP
SPT=3961 DPT=2745 WINDOW=16384 RES=0x00 SYN URGP=0
That long string after MAC= tells you the MAC addresses at each end of the
link (first 6 bytes = local (firewall) end; next six bytes = remote end; last
two bytes means IP packet inside this ethernet frame)
Therefore taking the above example, 00:d0:58:e0:04:cf is the MAC address of
the system connecting to my firewall.
> Sorry about my english... I hope you can understand me...
No problem at all :)
Regards,
Antony.
--
Anyone that's normal doesn't really achieve much.
- Mark Blair, Australian rocket engineer
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-05-21 13:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-21 13:39 Logging MAC Marcelus Trojahn
2004-05-21 13:53 ` Antony Stone [this message]
2004-05-21 14:17 ` Re[2]: " Marcelus Trojahn
2004-05-21 14:34 ` Antony Stone
2004-05-21 15:07 ` Re[4]: " Marcelus Trojahn
2004-05-21 15:25 ` Antony Stone
2004-05-22 1:47 ` Alistair Tonner
2004-05-22 9:06 ` Antony Stone
2004-05-22 12:09 ` Alistair Tonner
2004-05-22 12:33 ` Antony Stone
2004-05-22 15:57 ` Alistair Tonner
2004-05-22 16:17 ` Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405211453.02935.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox