Linux-based sensors
A sensor can be any Linux device with one or more compatible Wi-Fi adapters configured to allow WiFi Explorer Pro 3 SSH access to scan for wireless networks using the desired Wi-Fi interface. A sensor can use active or passive scan mode. In active scan mode, the sensor uses a helper utility that scans for Wi-Fi networks using the 802.11 netlink API. In passive scan mode, the sensor puts the Wi-Fi interface in monitor mode and listens for beacons. Most modern Wi-Fi adapters support the 802.11 netlink API, so if an adapter doesn’t support monitor mode, you may still be able to use it to scan for Wi-Fi networks in active scan mode.By default, a sensor is configured to use Auto in WiFi Explorer Pro 3. In auto mode, active scan mode is preferred when available; otherwise, passive scan mode is used.
A WLAN Pi connected directly to your Mac over USB (OTG) doesn’t need to be added under Settings > Sensors. WiFi Explorer Pro 3 automatically lists it as its own entry in the Scan Mode menu.
Install the required utilities
For a Linux device to work as a sensor, the following utilities must be installed:Configure passwordless sudo
WiFi Explorer Pro 3 runs the utilities listed above over SSH withsudo, so the SSH user you use to connect to the sensor must be able to run them without being prompted for a password. You can grant that permission to only those utilities by adding a file to the /etc/sudoers.d/ directory on the sensor:
-
Find the absolute path of each utility you need. Paths vary between Linux distributions, so check them on the sensor itself rather than assuming the ones used in the examples below:
-
Create the sudoers file, called
wlandumpin this example, usingvisudo, which checks the syntax before saving: -
Add a single line listing the utilities required by the scan mode you plan to use, using the paths you found in step 1. For active scan mode:
For passive scan mode:To allow either scan mode, list all of the utilities:The paths above are examples.
sudomatches each rule against the exact path of the command it runs, so if a utility is installed elsewhere on your sensor, replace the example path with the one you found in step 1. -
Save the file and exit the editor, then make the file read-only:
-
Verify the configuration by logging in to the sensor as the SSH user and running a utility with
sudo -n, which fails instead of prompting for a password:If the command lists the wireless interfaces, the SSH user can run the utilities without entering a password. If it returns “sudo: a password is required”, check the paths you entered in step 3 and the group membership described below.
The example lines grant passwordless
sudo to every member of the sudo group (%sudo). If the SSH user doesn’t belong to that group, replace %sudo with the username, as in wlanpi ALL=(ALL) NOPASSWD: /sbin/iw, /bin/ip, /usr/bin/scandump.Android-based sensors
You can also use an Android device as an active-scan sensor when using WiFi Sensor for Android or analiti’s real-time stream function. Android-based sensors support active scanning only. To use WiFi Sensor or analiti with a compatible Android device as a sensor, follow the instructions below to add your Android device as a sensor and use port 19000.Add a sensor
- Go to WiFi Explorer Pro 3 > Settings > Sensors and click the + button.
- Enter the hostname or IP address of the sensor.
- Double-click the Name field to give the sensor a custom name.
- To specify a wireless interface for scanning, double-click the Interface Name field and enter its name. Otherwise, WiFi Explorer Pro 3 automatically chooses the first remote wireless interface. This field is ignored for Android-based sensors.
- If the Linux-based sensor uses a port other than TCP port 22 for SSH access, double-click the Port field and enter the correct port number. For Android-based sensors, enter port 19000.
WiFi Explorer Pro 3 discovers WLAN Pi-based sensors deployed in your local area network automatically.
Because WiFi Explorer Pro 3 uses a Linux-based sensor’s Wi-Fi adapter to perform the scan, WiFi Explorer Pro 3 must connect to the sensor via Ethernet or a secondary Wi-Fi adapter.
Connect to a sensor
- Click on the Scan Mode menu in the WiFi Explorer Pro 3’s toolbar.
- Select the sensor.
- Enter a valid username and password to connect to the sensor if prompted.
If the sensor is behind a firewall, you must open TCP port 22 (SSH), or the port the sensor is using for SSH access, to allow for WiFi Explorer Pro 3 to communicate with the sensor.
Manage sensors
To manage the sensors, go to WiFi Explorer Pro 3 > Settings > Sensors. You can add, edit or delete existing sensors, and change the order of the sensors by dragging the entries in the list. You can also import or export sensors by clicking the More button and choosing Import or Export.Troubleshoot sensors
If you’re experiencing issues connecting to or using a sensor, WiFi Explorer Pro 3 includes a built-in diagnostics tool to help identify potential problems. To run diagnostics, open WiFi Explorer Pro 3, go to Settings > Sensors, select the sensor from the list, click the More button, and choose Run Diagnostics.Sensor diagnostics are available exclusively for Linux-based sensors.