In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how the Linux system protects against ARP attacks". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how the Linux system protects against ARP attacks".
Administrator user login, open terminal input
1. # arp-a > / etc/ethers
Import ip and mac addresses into ethers
2 、 # vi / etc/ethers
To edit the file format, the contents of the ethers file must be deleted as follows and changed to the form ip mac
192.168.1.X XX:XX:XX:XX:XX
192.168.1.X XX:XX:XX:XX:XX
...
/ / notice that mac capitalizes, and there is no O, only zero, ip and mac spaces
3. # vi / etc/rc.d/rc.local / / Open and display / etc/rc.d/rc.local file, startup item file
# I / / Edit
/ / execute arp-f at startup to bind according to the content in / etc/ethers
Add the last line to the / etc/rc.d/rc/local file
Arp-f
ESC exits editing
: wq / / Save edits
4. # arp-f / / execute the saved binding
(gateway mac is not included in ethers, otherwise an error will be reported)
This can only prevent some arp attacks. If all the ip mac in the network is imported into the ethers file, it can effectively prevent arp attacks.
1. Nmap-sP 192.168.11.0 Universe 24
Scan, it turns out that my arp table contains the mac of all the machines in that network segment, and copy all the information to the / etc/ethers file.
2, 3, 4 ditto
Thank you for reading, the above is the content of "how the Linux system protects against ARP attacks". After the study of this article, I believe you have a deeper understanding of how the Linux system protects against ARP attacks, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.