我首先使用此命令阻止了一个 IP:
route add -host x.x.x.x reject
Run Code Online (Sandbox Code Playgroud)
我仍然看到iftop. 我尝试在 iptables 中添加此规则:
-I INPUT -s x.x.x.x -j DROP
Run Code Online (Sandbox Code Playgroud)
尽管如此,运行时iftop它会显示在顶部。有没有办法完全阻止它?
请注意,这是一个 VPS,我无法配置任何防火墙。