From: ard-netfilter@kwaak.net
To: netfilter@lists.netfilter.org
Subject: DNAT and accounting
Date: Wed, 20 Nov 2002 19:56:38 +0100 [thread overview]
Message-ID: <20021120185637.GD7487@kwaak.net> (raw)
Hi,
I did not really find it yet (yes, I am a louse searcher) in the
archive, but does anybody know if it is possible to get
accounting statistics from a DNATted network?
I mean:
iptables -t nat --append PREROUTING --destination 192.168.1.0/24 \
--jump DNAT --to-destination 192.168.1.1
How can I get accounting statistics for all the ip addressess
that are in that range?
Something like
iptables -t mangle --append PREROUTING --source 192.168.1.4
or:
iptables -t mangle --append POSTROUTING --source 192.168.1.4
As I can see it: there is no table that is able to see the
un-DNATted version of the returning packet.
In other words: if I have set up a connection to 192.168.1.4, it
will be a DNATted connection to 192.168.1.1 . But now I want to
have statistics about how much 192.168.1.1 sends back in name of
192.168.1.4 . As far as I can see, all the tables only see
192.168.1.1 as the sender of the reply packets.
--
mail up 4+07:59, 4 users, load 0.00, 0.02, 0.00
mistar1 up 1+21:11, 6 users, load 0.00, 0.00, 0.00
Let your government know you value your freedom: sign the petition:
http://petition.eurolinux.org
reply other threads:[~2002-11-20 18:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20021120185637.GD7487@kwaak.net \
--to=ard-netfilter@kwaak.net \
--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.