我的服务器不断受到亚马逊印度服务器的攻击。
我35.154.0.0/16
在路由中添加了 IP 地址范围35.154.252.15
ip route add blackhole 35.154.0.0/16
但是当我检查 IP 地址是否被阻止时,它没有输出任何内容。
ip route show 35.154.252.15
我如何确定35.154.252.15
被 阻止了ip route
?
答案1
人IP路由:
ip route get
get a single route
this command gets a single route to a destination and prints its
contents exactly as the kernel sees it.
因此尝试一下:
ip route get 35.154.252.15