Git Product home page Git Product logo

Comments (6)

royhills avatar royhills commented on July 26, 2024

I think what you are seeing is a side-effect of proxy ARP, where a system will respond to ARP requests for the IP address of any of its interfaces. The mac address will always be the one connected to the segment you are scanning on.

from arp-scan.

solsticedhiver avatar solsticedhiver commented on July 26, 2024

That is one explantion but...

The answer is the same if I use a wifi interface on my latpop to do the scan.

I don't see proxy_arp enabled on that rpi (in /proc/sys/net/ipv4/conf/<iface>/proxy_arp) or in the wifi AP (running openwrt)

So the router may be ?

This should be closed ?

from arp-scan.

royhills avatar royhills commented on July 26, 2024

I think it may be a special case of proxy arp for local interfaces. I've seen this behaviour on linux systems with two Ethernet interfaces before, although it was a long time ago - maybe in the 2.6 kernel era. I'm not sure if there is a sysctl/proc control for this type of proxy arp.

No need to close until we've run out of ideas or solved the issue, as these sorts of unexplained issues can sometimes uncover interesting behaviour.

from arp-scan.

royhills avatar royhills commented on July 26, 2024

This serverfault thread seems to discuss the same behaviour:

https://serverfault.com/questions/834512/why-does-linux-answer-to-arp-on-incorrect-interfaces

from arp-scan.

solsticedhiver avatar solsticedhiver commented on July 26, 2024

Yes that's it.

On the target machine with 2 interfaces, as soon as I set net.ipv4.all.conf.arp_ignore to 1 or 2, it works as I excepted it in the output of arp-scan.

That's weird (to me at least) that it is not the default. From the point of view of the output of arp-scan it makes more sense that way. I don't know the internals of the (linux) kernel or it's ipv4 stack ...

The wikipedia link in the last comment is interesting: https://en.wikipedia.org/wiki/Host_model?oldformat=true

from arp-scan.

royhills avatar royhills commented on July 26, 2024

Well we've both learned something, which is good. I'll close this ticket now. Thanks for taking the time to report this behaviour.

from arp-scan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.