Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Multi-VLAN scanning] #299

Closed
dustingrady opened this issue Apr 21, 2024 · 6 comments
Closed

[Multi-VLAN scanning] #299

dustingrady opened this issue Apr 21, 2024 · 6 comments
Labels
Documentation Improvements or additions to documentation Enhancement New feature or request

Comments

@dustingrady
Copy link

It would be very nice to be able to scan across multiple VLANS by specifying the IP ranges (such as 192.168.0.0/16).

Currently, it appears to only scan the /24 of the network it is installed on.

@dustingrady dustingrady added the Enhancement New feature or request label Apr 21, 2024
@leiweibau
Copy link
Owner

leiweibau commented Apr 21, 2024

Pi.Alert can scan all networks to which it is connected via a physical or virtual network card.

['192.168.1.0/24 --interface=eth0','192.168.2.0/24 --interface=eth1']
The last configuration is necessary if several networks are to be monitored. 
For each network to be monitored, a corresponding network card must be configured.
This is necessary because the "arp-scan" used is not routed, i.e. it only works within its own subnet. 
Each interface is entered here with the corresponding network. 
The interface designation must be adapted to the conditions of the system.

@leiweibau leiweibau added the Documentation Improvements or additions to documentation label Apr 21, 2024
@dustingrady
Copy link
Author

Thanks so much for the reply!
So if I have this running on a trunk'd interface, I should just be able to specify as follows using the same interface?

SCAN_SUBNETS = [ '192.168.1.0/24 --interface=ens18', '192.168.2.0/24 --interface=ens18', '192.168.3.0/24 --interface=ens18' ]

@leiweibau
Copy link
Owner

It may be that this also works. I have only tried it a few times in a virtual environment with several interfaces. With the virtual interfaces, I actually had these in mind

SCAN_SUBNETS = [ '192.168.1.0/24 --interface=ens18', '192.168.2.0/24 --interface=ens18:0', '192.168.3.0/24 --interface=ens18:1' ]

@dustingrady
Copy link
Author

Ah, so each interface would be assigned to a different VLAN. That makes sense.
Is there by chance a way to scan the different SCAN_SUBNETS definitions via ICMP (iterating over a range of IPs) or is that not currently supported?

@leiweibau
Copy link
Owner

Is there by chance a way to scan the different SCAN_SUBNETS definitions via ICMP (iterating over a range of IPs) or is that not currently supported?

Unfortunately not. This option is not available at the moment. I have addressed the difficulty of implementation here.

#271 (comment)

#272 (comment)

#272 (comment)

@dustingrady
Copy link
Author

I was actually able to accomplish this using 1 Pi Alert instance and setting multiple network interfaces on the Proxmox instance that hosts the VM. I then setup each interface to the corresponding VLAN using the /etc/network/interfaces config. This works for me, but I understand it is not a straight forward solution.

@leiweibau leiweibau pinned this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants