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

Linux 网关上统计各个源 IP 的每天流量

  •  
  •   8675bc86 · Sep 13, 2023 · 3511 views
    This topic created in 998 days ago, the information mentioned may be changed or developed.

    有什么工具可以推荐吗?

    例如有 10 个客户端流量通过此网关转发,统计每个客户端用了多少 G 的上下行流量。

    8 replies    2023-09-15 13:26:00 +08:00
    lizenghui
        1
    lizenghui  
       Sep 13, 2023
    哈哈 同问,帮顶。
    binhb
        2
    binhb  
       Sep 13, 2023
    使用 rust 写过统计流量的库
    netraffic https://github.com/ZingerLittleBee/netraffic
    leonshaw
        3
    leonshaw  
       Sep 13, 2023 via Android
    iptables/nftables
    lrh3321
        4
    lrh3321  
       Sep 14, 2023   ❤️ 1
    源 IP 是已知的吗?已知的话,可以在 iptables/nftables 提前建好链来统计

    流量统计感觉用 eBPF 来做会比较合适,或者 API 网关自己统计
    lovelylain
        5
    lovelylain  
       Sep 14, 2023 via Android
    pedh
        7
    pedh  
       Sep 14, 2023 via iPhone
    ntopng
    chen22
        8
    chen22  
       Sep 15, 2023 via Android
    同问
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 21:50 · PVG 05:50 · LAX 14:50 · JFK 17:50
    ♥ Do have faith in what you're doing.