From: gummi7@simnet.is
To: netfilter@newkirk.us, netfilter@lists.netfilter.org
Subject: Re: Measuring traffic that goes thrugh a specific IP
Date: Thu, 6 Feb 2003 12:33:23 +0000 [thread overview]
Message-ID: <isapiwc.433ab781.55d.3e425613.69620.b1@postur.simnet.is> (raw)
In-Reply-To: <200302060039.58779.netfilter@newkirk.us>
"If you mean that the specific IP is simply a router somewhere that the traffic 'might happen' to pass through in its travels"
That's exactly what I want to do :(
I can always find out if a packet passes trough that specifec IP(the one I want to measure, therefore being internatoinal) by using a tool like DOS's "tracert", doesn't that help?
Do you know of a program for linux that does what I am trying to do?
> On Sunday 02 February 2003 05:11 pm, gummi7@simnet.is wrote:
>> Hello
>>
>> I'm a linux/iptables/netfilter newbie, but I want to ask you a simple
>> question. It's a long story and unrellevant to tell you why I want to
>> do it so i'll just get straigt to the point.
>>
>> I want to be able to measure(with my linux router) all the traffic
>> from the computers on my network that go thrugh a specifc IP number
>> wich is located in another place in my country. That is, if a computer
>> on my network accesses a website and goes trough a specifed IP number
>> to get that website, I want to be able to measure the amount of data
>> that goes trough that specified IP number, but only the data on my
>> behalf. Note that I do not have phisical(nor telnet or ssh) access to
>> the router with the specifed IP number that I want to measure.
>>
>> Can I do that with iptables and/or ipfilter? A yes is all I have to
>> hear if that is possible but an example or a little help wouldn't hurt
>
> If you mean that the specific IP is the destination of a packet, IE
> machines explicitly connect to that IP and it is listed in the header,
> there is no problem. If you mean that the specific IP is simply a
> router somewhere that the traffic 'might happen' to pass through in its
> travels, I think you're out of luck.
>
> You can tally all traffic to a specific destination IP with:
>
> /sbin/iptables -d w.x.y.z
>
> at the top of your FORWARD chain, and then "iptables -L -v -n" will list
> your rules, and this 'do-nothing' rule will list packet counts and byte
> totals that matched it without actually having DONE anything. Adding
> '-j LOG --log-prefix "HIT:"' to the end of the above rule would log
> information on ALL packets with that IP as destination, but if this is a
> large amount of traffic then your /var/log/messages (default) logfile
> would chew up hard drive space at an apalling rate.
>
> j
>
next prev parent reply other threads:[~2003-02-06 12:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-02 22:11 Measuring traffic that goes thrugh a specific IP gummi7
2003-02-06 5:39 ` Joel Newkirk
2003-02-06 12:33 ` gummi7 [this message]
2003-02-10 0:32 ` Joel Newkirk
2003-02-11 23:34 ` gummi7
-- strict thread matches above, loose matches on Subject: below --
2003-02-05 20:49 Khanh Tran
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=isapiwc.433ab781.55d.3e425613.69620.b1@postur.simnet.is \
--to=gummi7@simnet.is \
--cc=netfilter@lists.netfilter.org \
--cc=netfilter@newkirk.us \
/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