ubuntu 下的arp 防御

手动运行:

sudo arp -s gateway_address gateway_mac

iptables -t filter -A INPUT -s 可疑ip -i eth0 -j DROP

如果需要自动运行:

echo ‘arp -s gateway_address gateway_mac’ > /etc/ethers

gedit /etc/rc.local

加入如下行使其系统自动运行

arp -s /etc/ethers


评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注