Pi.Alert icon indicating copy to clipboard operation
Pi.Alert copied to clipboard

Support for multiple interfaces

Open kwschnei opened this issue 3 years ago • 5 comments

arp-scan appears to support specifying only 1 interface. For users with multiple interfaces connected to different networks, the user has to pick which network to monitor. Please add support for specifying multiple interfaces and their networks.

kwschnei avatar Mar 29 '22 13:03 kwschnei

Did you gef8nd a solution for this. I had the same issue, as use Pi hole and have multiple interfaces with different subnets. I made a modification to the code and for me it works great picking up devices on 4 different network subnets. If you're happy modifying code I will happily show and explain the mod I did. Obviously if you ever update the main application it will get over written. Once I've tested properly I'll request it as feature/pull request (not sure of terminology) to Pucherot

jaseuk73 avatar Jul 03 '22 13:07 jaseuk73

Did you gef8nd a solution for this. I had the same issue, as use Pi hole and have multiple interfaces with different subnets. I made a modification to the code and for me it works great picking up devices on 4 different network subnets. If you're happy modifying code I will happily show and explain the mod I did. Obviously if you ever update the main application it will get over written. Once I've tested properly I'll request it as feature/pull request (not sure of terminology) to Pucherot

Would be a great addition. If you are happy to contribute, you can add it to this fork which I hope has most of the latest development included.

jokob-sk avatar Jul 18 '22 12:07 jokob-sk

@jaseuk73 I put it on my to-do list for the coming winter - it wasn't important enough to me to miss out on any summer sunshine. If you're willing to contribute to jokob-sk's fork, that would be wonderful - his seems to be one of the most active forks and is the one I use.

kwschnei avatar Aug 04 '22 13:08 kwschnei

Hi,

Added simple support for multiple interface, on my fork: https://github.com/jokob-sk/Pi.Alert/commit/929ea98fcef7d8b8af81181d97a8f9dff16665fe

Please let me know if there are issues by open an issue on my fork. Check the sample pialert.conf for details on how to specify the interfaces:

https://github.com/jokob-sk/Pi.Alert/blob/4cd2f7cf322848e3607ba97ec365e4ac8ac5e6f3/config/pialert.conf#L85

jokob-sk avatar Aug 16 '22 05:08 jokob-sk