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

ocserv 如何限速?

  •  
  •   ouyangmland · Jun 20, 2017 · 4078 views
    This topic created in 3273 days ago, the information mentioned may be changed or developed.
    看到 ocserv.conf 456 行到 461 行有如下一段注释和配置参数

    # Unset to enable bandwidth restrictions (in bytes/sec). The
    # setting here is global, but can also be set per user or per group.
    #rx-data-per-sec = 40000
    #tx-data-per-sec = 40000


    但是我取消了 rx-data-per-sec 和 tx-data-per-sec 前的注释,这样应该是启用了全局限速,但是实际并没有任何限速效果!是还需要设置其他的吗?我看他上面的注释说,还可以设置每个用户的。但是查阅官方文档也没有详细的说明这部分参数!有大神弄过 ocserv 限速吗?
    1 replies    2017-06-21 18:08:33 +08:00
    cattyhouse
        1
    cattyhouse  
       Jun 21, 2017 via iPhone
    极端一点,设置为 10 看看。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2720 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:34 · PVG 10:34 · LAX 19:34 · JFK 22:34
    ♥ Do have faith in what you're doing.