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

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

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

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

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