Modify the NIC address and defend against ARP attacks in Mac OS X.

Source: Internet
Author: User

I have been using the Mac system for some time. Here I will record the problems that need to be solved by terminal commands. The network environment is bound to the MAC address of the original machine. for special reasons, change the NIC address of the new machine to the original one. Enter sudo ifconfig en0 ether 00: 00: 00: 00: 00: 00 in the terminal. en0 is your first NIC (Ethernet NIC, non-wireless ), the following 12 zeros are the target NIC address to be changed. After you enter them, you will be asked to enter the administrator password. Do not forget to set the administrator password for your account, after confirmation, the NIC address of the current machine will take effect temporarily. After restart, the NIC address will be restored to the machine itself. The LAN environment should have been harmonious, but at this time every year new graduates will go into the office and undermine the LAN environment of the dormitory, using the despicable ARP technology to undermine the ecological stability. So enable bidirectional binding again. Bind the MAC address of the gateway on the local machine to maintain world peace. Enter sudo arp-s 192.168.7.254 00: 11: 11: 11: 11: 11: 11. 192.168.7.254 indicates the IP address of the Gateway in your network environment, the following 12 digits are the MAC address of the gateway, so that common disguised gateway attacks are useless. This command is permanent. You can enter arp-d 192.168.7.254 to delete the previously bound gateway MAC address. Open your browser and you can access the Internet. To celebrate the world peace.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.