Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
tsuibin
V2EX  ›  Linux

Ubuntu做路由,如何统计用户流量?

  •  
  •   tsuibin ·
    tsuibin · Sep 11, 2013 · 4116 views
    This topic created in 4654 days ago, the information mentioned may be changed or developed.
    网卡的流量可以通过简单的工具获取
    但是如果像知道局域网内所有的用户流量,有什么工具推荐?
    6 replies    1970-01-01 08:00:00 +08:00
    sivacohan
        1
    sivacohan  
    PRO
       Sep 11, 2013
    工具的话,freeradius可以满足。

    如果想自己玩的话。我记得freeradius是在/dev/ppp下面得到的流量,具体的记不清了。
    aveline
        2
    aveline  
       Sep 11, 2013
    我之前是用 iptables 统计的
    tsuibin
        3
    tsuibin  
    OP
       Sep 11, 2013
    @aveline 请教iptables如何统计单个IP的流量
    tsuibin
        5
    tsuibin  
    OP
       Sep 19, 2013
    @aveline 感谢,现在还没有鼓捣出来继续折腾一下
    tywtyw2002
        6
    tywtyw2002  
       Sep 20, 2013 via iPhone
    netflow
    iptables
    netmap/libcap自己写个程序

    netmap开销真的很小 千兆带宽 cpu 5% @ core 2
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4985 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:57 · PVG 11:57 · LAX 20:57 · JFK 23:57
    ♥ Do have faith in what you're doing.