RE: A practical problem regarding IP Accounting ...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# 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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux