Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
Centos TC IP 地址限速的问题。
5870352
·
Feb 29, 2016
· 4555 views
This topic created in 3715 days ago, the information mentioned may be changed or developed.
使用
https://gist.github.com/akrasic/7242498
显示 Gist 代码
的脚本。
download_limit=2mbit
$FILTER match ip dst 0.0.0.0/0 flowid 1:10
$FILTER match ip src 0.0.0.0/0 flowid 1:20
这个参数测试下来是所有的 IP 共享 2m 限速,怎么修改才可以变成指定多个 ip 独立限速 2m 。
求大神指点。。。
限速
flowid
filter
match
5 replies
•
2016-03-02 16:11:52 +08:00
1
extreme
Feb 29, 2016
1
关键: 0.0.0.0/0
改成: IP/32
2
ioiioi
Feb 29, 2016
@
extreme
那是每个 ip 都要写一条 tc filter 吗?
如果是一个 C ,那岂不是要写 254 个?
另外,如果写这么多条会不会影响性能?
3
5870352
OP
Mar 1, 2016 via iPhone
@
ioiioi
看来只能一条一条写,那就用脚本写 254*2 条。
4
5870352
OP
Mar 1, 2016 via iPhone
@
extreme
谢谢 一会试试
5
5870352
OP
Mar 2, 2016
@
extreme
已经实现,虽然不是用这个方法解决的。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2529 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 02:58
·
PVG 10:58
·
LAX 19:58
·
JFK 22:58
♥ Do have faith in what you're doing.
❯