Skip to content

A companion script for Pi.Alert, which executes the Pi.Alert scan on an external host and sends the data as encrypted JSON to an existing Pi.Alert instance via a separate API.

License

Notifications You must be signed in to change notification settings

leiweibau/Pi.Alert-Satellite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi.Alert Satellite

A companion script for Pi.Alert, which executes the Pi.Alert scan on an external host and sends the data as encrypted JSON to a special API.

The satellite can operate in 1 of 2 different modes

Satellite Modes

Direct API call:

Here the API of the Pi.Alert instance is called. This API compares the transmitted token with the Pi.Alert database to check whether the token is valid. If this is the case, the encrypted payload is decrypted and processed together with the scans of the Pi.Alert instance.

Indirect API call (proxy mode):

The API is installed on a separate web server. The satellite now transmits the data to the "proxy". This uses a configuration file to check whether it is a valid token and, if so, stores the data in encrypted form. Decryption on the proxy is not possible, as only the satellite and the Pi.Alert instance know the password. For Pi.Alert to retrieve the data, it must also be configured for proxy mode.

Prepare PROXY_MODE

Scan Methods

  • arp-scan. The arp-scan system utility is used to search for devices on the network using arp frames.
  • Fritzbox. If you use a Fritzbox (a router from the company "AVM"), it is possible to perform a query of the active hosts. This also includes hosts of the guest WLAN and Powerline devices from "AVM".
  • Mikrotik. If you use Mikrotik Router as DHCP server, it is possible to read DHCP leases.
  • UniFi. If you use UniFi controller, it is possible to read clients (Client Devices)

Installation

Initially designed to run on a Debian based Linux distribution.

One-step Automated Install
bash -c "$(wget -qLO - https://github.com/leiweibau/Pi.Alert-Satellite/raw/main/install/pialert_satellite_install.sh)"

As an alternative to this installation, you can also click on the blue "i" icon on the right in the line of the corresponding satellite in the Pi.Alert instance after creating a satellite and create the installation command, which takes care of the important configuration during the installation.

Main Config flie parameter

Config MainScreen PreConfig Modal

Update

Initially designed to run on a Debian based Linux distribution.

One-step Automated Update
bash -c "$(wget -qLO - https://github.com/leiweibau/Pi.Alert-Satellite/raw/main/install/pialert_satellite_update.sh)"

An archive of older versions can be found at https://leiweibau.net/archive/pialert-satellite/. This archive contains all release notes.

Uninstall

In the directory "pialert-satellite/install/" there is a script called "pialert_satellite_uninstall.sh". This can be used to delete the cronjob and the "pialert-satellite" directory.

License

GPL 3.0 Read more here

Contact

[email protected]

About

A companion script for Pi.Alert, which executes the Pi.Alert scan on an external host and sends the data as encrypted JSON to an existing Pi.Alert instance via a separate API.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published