Linux ICMP重定向

net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.lo.accept_redirects = 0
net.ipv4.conf.eth0.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0

设为1为启用ICMP重定向

windows系统

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
EnableICMPRedirects REG_DWORD 0x0(默认值为0x1)  

说明:该参数控制Windows 2000是否会改变其路由表以响应网络设备(如路由器)发送给它的ICMP 重定向消息,有时会被利用来干坏事.Windows 2000中默认值为1,表示响应ICMP重定向报文。

禁止响应ICMP路由 通告报文

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\interface\网卡标识

PerformRouterDiscovery REG_DWORD 0x0(默认值为0x2)  

说明:“ICMP路由公告”功能可造成他人计算机的网络连接异常,计算机被用于流量攻击 等严重后果.此问题曾导致校园网某些局域网大面积,长时间的网络异常。因此建议关闭响应ICMP路由通告报文.Windows 2000中默认值为2,表示当DHCP发送路由器发现选项时启用。

把参数设为0为关闭

猜你喜欢

转载自haohetao.iteye.com/blog/848715