Score:0

Is there a method of performing "local arp" requests on linux

ug flag

I have some code that performs an arp-scan, I wondered if there was a way within a single machine to have "something" respond to arp-scan within the same host.

I've tried a few things so far like macvlans/ipvlans (l2) etc but I think perhaps it's just not possible due to the nature of ARP.

The flow is this:

I have an application that performs an arp-scan on startup, and I want to "mock" a response to the arp-scan so it gets the mac and IP address of another interface on the same host.

Ginnungagap avatar
gu flag
What is the overall aim for this? It sounds like an XY problem...
Vercingatorix avatar
ar flag
Try proxy ARP maybe?
Alan Hollis avatar
ug flag
I've added some detail to the question. I've looked at proxyarp but I again couldn't get it to work.
Alan Hollis avatar
ug flag
Also I've never heard of an xy problem before, this could well be one. The easiest solution would be to just modify the code so that it doesn't actually need a proper arp response, but this nerd sniped me in a way where it looks like this should sort of be possible, but then again might not ;)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.