Linux系统下如何防止IP欺骗?

Linux系统下如何防止IP欺骗?,第1张

用vi编辑器编辑host.conf文件,在其中添加下列所示的几行,就可以防止IP欺骗

order bing, hosts

multi off

nospoof on

还有不会的请参考《linux就该这么学》,针对各种linux疑难杂症,帮助linux学习者。

防止IP欺骗就是禁止指定的MAC地址访问了?

iptables -A INPUT -p all -m mac --mac-source ab:cd:ef:01:02:03 -j DROP

然后iptables-save

禁止ping回显:

iptables -A INPUT -p icmp -m icmp --icmp-type 8 -j DROP

然后iptables-save

禁止ping回显还可以这么设置:

在/etc/sysclt.conf中添加:

net.ipv4.icmp_echo_ignore_all=1


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/7509479.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-06
下一篇 2023-04-06

发表评论

登录后才能评论

评论列表(0条)

保存