Linux Netfilter discussions
 help / color / mirror / Atom feed
* A practical problem regarding  IP Accounting ...?
@ 2004-03-09  0:09 toto eucup
  2004-03-09  2:53 ` Ted Kaczmarek
  0 siblings, 1 reply; 4+ messages in thread
From: toto eucup @ 2004-03-09  0:09 UTC (permalink / raw)
  To: netfilter

I have 32 IP ADDRESSE 11.22.33.64-96 
11.22.33.65 Router (cisco) I do not have access on it 
Big Brother proprerty-- BELL you know already :( ...
:)
 


My linux box 2 net interface
11.22.33.66 running DNS on eth0 and
11.22.33.67 on eth1


Here comes the scenario:
Betwen the router and Swich is my machine and I want
all the trafic to go through my Linux Box to be able
to account the trafic per IP addres.

              ROUTER -->INPUT<-- eth0
My Linux Box: eth0-->Accounting FILTER<--eth1
              eth1-->SWITCH<--  11.22.33.68 to 95


I want to be able  in my linux box to measure trafic
for all the station which are pluged in switch from 68
to 95

Thanks for an eventual complet solution.

    


 
I tried to do so
 
 [INTERNET] -->[ ROUTER:11.22.33.65] -->[ eth0(66)
 --eth1(67)] -->[HUB/switch]--> [station ([68].. to
 [95])]

How can I masure the trafic on each IP address in 68
to 95 range using your software.




	
		
Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de


^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: A practical problem regarding  IP Accounting ...?
@ 2004-03-09  1:02 Daniel Chemko
  2004-03-09  9:04 ` Antony Stone
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Chemko @ 2004-03-09  1:02 UTC (permalink / raw)
  To: toto eucup, netfilter

# Outbound to PC
iptables -t mangle -A PREROUTING -i eth1 --source <ip_address>
# Inbound to PC
iptables -t mangle -A POSTROUTING -o eth1 --destination <ip_address>

Then use your own accounting tool to rip the byte count from "iptables -t mangle -nvxL". Remember though, the byte count can reset or overflow to 0, so make sure your accounting package can handle this.

toto eucup wrote:
> I have 32 IP ADDRESSE 11.22.33.64-96
> 11.22.33.65 Router (cisco) I do not have access on it
> Big Brother proprerty-- BELL you know already :( ...
> :)
> 
> 
> 
> My linux box 2 net interface
> 11.22.33.66 running DNS on eth0 and
> 11.22.33.67 on eth1
> 
> 
> Here comes the scenario:
> Betwen the router and Swich is my machine and I want
> all the trafic to go through my Linux Box to be able
> to account the trafic per IP addres.
> 
>               ROUTER -->INPUT<-- eth0
> My Linux Box: eth0-->Accounting FILTER<--eth1
>               eth1-->SWITCH<--  11.22.33.68 to 95
> 
> 
> I want to be able  in my linux box to measure trafic
> for all the station which are pluged in switch from 68
> to 95
> 
> Thanks for an eventual complet solution.
> 
> 
> 
> 
> 
> I tried to do so
> 
>  [INTERNET] -->[ ROUTER:11.22.33.65] -->[ eth0(66)
>  --eth1(67)] -->[HUB/switch]--> [station ([68].. to
>  [95])]
> 
> How can I masure the trafic on each IP address in 68
> to 95 range using your software.
> 
> 
> 
> 
> 
> 
> Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-09  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09  0:09 A practical problem regarding IP Accounting ...? toto eucup
2004-03-09  2:53 ` Ted Kaczmarek
  -- strict thread matches above, loose matches on Subject: below --
2004-03-09  1:02 Daniel Chemko
2004-03-09  9:04 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox