From: Jiann-Ming Su <sujiannming@gmail.com>
To: Daniel Chemko <dchemko@smgtec.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: connection tracking without iptables?
Date: Thu, 30 Sep 2004 19:04:59 -0400 [thread overview]
Message-ID: <561dc326040930160476d839c7@mail.gmail.com> (raw)
In-Reply-To: <7C9884991ADAE0479C14F10C858BCDF591E37C@alderaan.smgtec.com>
On Thu, 30 Sep 2004 11:19:25 -0700, Daniel Chemko <dchemko@smgtec.com> wrote:
>
> The way I track this kind of information is from netfilter/iptables.
>
> In the PREROUTING and POSTROUTING chains, you implement 'null' targets
> to add an internal netfilter counter to the packet stream.
>
> # Detect all outgoing web traffic from that subnet
> iptables -t mangle -A PREROUTING --source ${mynet}/${mymask} -p tcp
> --dport 80
> # Return Traffic
> iptables -t mangle -A PREROUTING --destination ${mynet}/${mymask} -p tcp
> --sport 80
>
Another thing I'm interested in is the total number of current
connections. Does /proc/net/ip_conntrack provide this info? I've
taken my iptables firewall offline, and I would expect
/proc/net/ip_conntrack to show very few connections, but it seems to
still have quite a bit of historical connections left in it.
Basically, what I want to be able to do is graph the number of
connections as a function of time with MRTG. I just need to make sure
I'm grabbing the right information. The output of "iptables -nvxL"
seems to be total packets processed. Thanks again for any tips.
--
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that,
I'd vote." --Duckman
next prev parent reply other threads:[~2004-09-30 23:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-30 18:19 connection tracking without iptables? Daniel Chemko
2004-09-30 18:26 ` Jason Opperisano
2004-09-30 23:04 ` Jiann-Ming Su [this message]
2004-09-30 23:34 ` Jason Opperisano
2004-10-14 18:31 ` Jiann-Ming Su
2004-10-14 18:57 ` Jason Opperisano
2004-10-15 5:16 ` Kiran Kumar Immidi
2004-10-16 12:30 ` Jose Maria Lopez
2004-10-25 20:48 ` Aleksandar Milivojevic
-- strict thread matches above, loose matches on Subject: below --
2004-09-30 23:20 Daniel Chemko
2004-09-29 21:22 Daniel Chemko
2004-09-30 2:24 ` Jiann-Ming Su
2004-09-29 20:50 Jiann-Ming Su
2004-09-29 20:57 ` Alexis
2004-09-29 21:01 ` Jason Opperisano
2004-09-29 21:37 ` Jose Maria Lopez
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=561dc326040930160476d839c7@mail.gmail.com \
--to=sujiannming@gmail.com \
--cc=dchemko@smgtec.com \
--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