Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: ethernet headers and iptables counters
Date: Mon, 10 Nov 2003 09:40:40 +0000	[thread overview]
Message-ID: <200311100940.hAA9eij16696@agate.rockstone.co.uk> (raw)
In-Reply-To: <1068455679.10203.4.camel@hohum.marcsnet.com>

On Monday 10 November 2003 9:14 am, Marc Lucke wrote:

> Hi,
>
> Do the iptables counters include layer 2 ethernet packet headers?  If
> so, how much traffic is this - is it a set amount?

No, because you may not be using ethernet.

Netfilter can be used for packets across ethernet, 802.11, PPP modems - all 
sorts of network transports.

Packet and byte counters in netfilter are IP (OSI layer 3) and upwards.

You can check this easily by creating a rule matching something specific (eg 
ping packets), send a known amount of traffic through the box (or measure it 
with a packet sniffer / protocol analyser such as ethereal, which will give 
you a detailed view of the contents of the packets), and then check what the 
counters say.

Antony

-- 

Anything that improbable is effectively impossible.

 - Murray Gell-Mann, Nobel Prizewinner in Physics
                                                     Please reply to the list;
                                                           please don't CC me.


  reply	other threads:[~2003-11-10  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  9:14 ethernet headers and iptables counters Marc Lucke
2003-11-10  9:40 ` Antony Stone [this message]
2003-11-10 23:21   ` Antony Stone
2003-11-10 23:34     ` Simon Kitching
2003-11-10 23:45       ` Antony Stone
2003-11-11 13:37     ` Leonardo Rodrigues Magalhães

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=200311100940.hAA9eij16696@agate.rockstone.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