这是一个创建于 2545 天前的主题,其中的信息可能已经有所发展或是发生改变。
路由表中的 ip 不许额外设置就能分流,ipset 里面的 ip 还要转好几圈才能分流。
ipset 是为了把大量 ip 的流量定向到某个端口而产生的。
直接用路由表的缺陷:
dnsmasq 没有能操作路由表的设置, 需要自己 patch。
路由表没有 ipset 那种超时机制, 需要自己维护。
2 条回复 • 2018-03-15 10:23:21 +08:00
 |
|
1
LGA1150 2018-03-15 02:09:43 +08:00 via Android
时间复杂度 路由表 O(n),哈希表 O(1)
|
 |
|
2
p64381 2018-03-15 10:23:21 +08:00
@ LGA1150 linux 路由表要是 O(n) 就没法活了
|