Comments (6)
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.
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.
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.
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.
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.
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)
- Finding mac-vendor.txt HOT 6
- how do I set a custom subnet mask? HOT 2
- spec file contribution HOT 10
- get-oui from Fedora package arp-scan-1.9.7-7.fc37 fails with unhelpful message due to unmet dependency HOT 1
- Show MAC in arp-fingerprint HOT 6
- arp-scan does not look in /usr/share/arp-scan if trying to open ieee-oui.txt failes with EACCESS HOT 15
- Binary packaging status for version 1.10.0 HOT 2
- Potential memory leak in arp-scan/arp-scan.c HOT 2
- Command Line Argument for turning off Promiscuous Mode HOT 7
- Feature Request: Output options: Add sorting HOT 6
- "Target list from interface network X netmask Y" is displayed with --plain option HOT 1
- Parallel arp-scan missing devices HOT 2
- Will this reposity be moved to cmake? HOT 2
- how to update `ieee-oui.txt` on macOS? HOT 3
- Substitute autoconf pkgdatadir variable in arp-scan.1 manpage HOT 2
- Modify IEEE OUI code and scripts to reflect registry changes HOT 2
- Install mac-vendor.txt in $(sysconfdir)/$(PACKAGE) instead of $(pkgdatadir) HOT 1
- Retaining IP address in the output when using `--resolve` HOT 2
- --format option passes NULL args to printf() if specified field is not present HOT 1
- arp-scan --quiet output format regression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arp-scan.