From: Andre Raabe <andre.raabe@gmx.de>
To: netfilter@lists.netfilter.org
Subject: Re: Iptables counting with Layer7 patch
Date: Tue, 7 Jun 2005 17:25:32 +0200 [thread overview]
Message-ID: <20050607152532.GA2956@vaio> (raw)
In-Reply-To: <20050606113753.C9E182EA64@smtp02.isdsl.net>
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
On Mon, Jun 06, 2005 at 01:37:46PM +0200, Douglas Lane wrote:
>
> Basically I want to take certain traffic (such as VoIP,HTTP,FTP,etc...) and
> mark it on INPUT, OUTPUT and FORWARD chains and then using iptables -v to
> get the packet statistics and log it into MRTG or something similar.
>
Yes it is possible. Try:
iptables -t mangle -A INPUT -m layer7 --l7proto http \
-j MARK --set-mark 1
iptables -t mangle -A FORWARD -m layer --l7proto http \
-j MARK --set-mark 2
iptables -t mangle -A OUTPUT -m layer --l7proto http \
-j MARK --set-mark 3
Get packet statistics with:
iptables -t mangle -L -n -v
Best regards,
--
Andre Raabe <andre.raabe@gmx.de>
GnuPG: 0xD275A240 | 8B69 EABD 46A4 3B88 354B A25C 4322 AC35 D275 A240
http://www.tuxknowledge.org | bash@jabber.ccc.de | encryption welcome
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-06-07 15:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-06 11:37 Iptables counting with Layer7 patch Douglas Lane
2005-06-07 15:25 ` Andre Raabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-06-06 11:36 Douglas Lane
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=20050607152532.GA2956@vaio \
--to=andre.raabe@gmx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.