iptables报错:No chain/target/match by that name

今天打算临时限制一下某IP网速,发觉无法使用limit模块,捎带尝试了下hashlimit也不行,都报错

1
iptables: No chain/target/match by that name.

在尝试手动载入模块时报错

1
2
3
pi@raspberrypi:~ $ sudo modprobe xt_limit
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.41-v7+/modules.dep.bin'
modprobe: FATAL: Module xt_limit not found in directory /lib/modules/4.9.41-v7+

然后反应过来前几天更新修改系统内核至4.9.59-v7+,重启之后再回来试试(暂时实力只会重启:P)