Ubuntu anti-ARP spoofing (arptables)

Source: Internet
Author: User
Article Title: Ubuntu arptables ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I have been using Ubuntu for a long time, and I have never been concerned about getting people IP addresses. Even one day, my IP addresses were used and I found some information on the Internet, we found the arptables stuff! ~

The idea is similar to that of LNS !~~ Send a message to the LAN (FF: FF, instead of receiving the sent information. Oh, so this trick is very useful !~ It can also be used to attack other people's IP addresses. It's nice!

First install arptables:

* Sudo apt-get install arptables

Then define the rule:

* Sudo arptables-a input -- src-mac! Gateway physical address-j DROP

* Sudo arptables-a input-s! Gateway IP-j DROP

* Sudo arptables-a output -- destination-mac ff: ff-j ACCEPT

Oh, but this is a little bad. Resources in the LAN are not available !~ For example, fliggy, War3! If you want to use these rules, just give the rules above to Del !~

* Sudo arptables-F

Of course, we can make a script that runs automatically every time it starts up !~ Sudo gedit/etc/init. d/arptables. The content is as follows:

#! /Bin/sh

PATH =/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

Arptables-a input -- src-mac! Gateway physical address-j DROP

Arptables-a input-s! Gateway IP-j DROP

Arptables-a output -- destination-mac ff: ff-j ACCEPT

Then add execution attributes to arptables,

Sudo chmod 755/etc/init. d/arptables

Set arptables to run automatically,

Sudo update-rc.d arptables start 99 S.

Directly set with sysv-rc-conf

 

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.