parprouted - ARP daemon

Translation of the original in Catalan. Read it in: CatalàCastellano

parprouted

is a daemon that performs proxy ARP functions, an idea for joining two networks at level 3 when they are not joined by layer 2. That is, we do not need to do WDS (using on Wi-Fi networks) or to put a layer 2 bridge to join two networks that are physically separate but joined through routing. The operation of the daemon is the following: when an ARP request is received and the response to the request is unknown then that ARP request is re-sent to the rest of the interfaces in search of the MAC required by the IP requested in the ARP request. When the IP is located, static host-type routes (/32) are created to interconnect that IP which is on a different network interface from the interface that required it. That way we manage to make the IP visible between the two network interfaces. All the entries that are created with the daemon are refreshed every 50s by sending ARP requests that validate that they are still valid. In the event that the requests fail the kernel itself will delete the entries from the ARP table and the daemon will take care of deleting the static routes. Normally it takes about 60ms to manage to make a host that is not on its own network segment visible due to the processes mentioned, but it is considered a marginal time compared with the benefit obtained.