Skip to content

Commit 104dda1

Browse files
authored
Merge pull request #536 from leiweibau/next_update
Next update
2 parents 2211fec + a825824 commit 104dda1

25 files changed

+515
-188
lines changed

back/pialert.py

Lines changed: 224 additions & 52 deletions
Large diffs are not rendered by default.

config/pialert.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ PFSENSE_ACTIVE = False
201201
PFSENSE_IP = '192.168.1.1'
202202
PFSENSE_APIKEY = ''
203203
PFSENSE_SSL = False
204+
PFSENSE_EXCLUDE_INT = ['WAN']
204205

205206
# Satellite Configuration
206207
# -----------------------

config/version.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VERSION = ''
22
VERSION_YEAR = '2025'
3-
VERSION_DATE = '2025-10-18'
3+
VERSION_DATE = '2025-10-31'

docs/FIRST_START_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sends the results to a previously configured Pi.Alert instance. These satellites
4444
The "**4**" (🟪) is a link to the “docs” path in this repository
4545

4646

47-
[Next - Discreet buttons and menus](./guide/001.md)
47+
[Next (2) - Discreet buttons and menus](./guide/001.md)
4848

4949
[Back to Readme](https://github.com/leiweibau/Pi.Alert)
5050

docs/PIALERT_CONF.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ I would like to give a short explanation to the individual points.
247247
| OPENWRT_PASS | Password |
248248

249249

250-
#### :eight_spoked_asterisk: Asus Router Configuration
250+
#### :eight_spoked_asterisk: Asus Configuration
251251

252252
| Option | Description |
253253
|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -258,6 +258,16 @@ I would like to give a short explanation to the individual points.
258258
| ASUSWRT_SSL | Is https is True or False? |
259259

260260

261+
#### :eight_spoked_asterisk: pfsense Configuration
262+
263+
| Option | Description |
264+
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
265+
| PFSENSE_ACTIVE | Enables the import of pfSense. To do this, the REST API must be installed in pfSense. You can find more details here: [pfSense REST API](https://pfrest.org/). The API is used to import the DHCP leases and the ARP table from pfSense. |
266+
| PFSENSE_IP | IP address of the pfSense Firewall. |
267+
| PFSENSE_APIKEY | The API key that was created after installing the API in pfSense under ‘System’ -> ‘REST API’ -> 'Keys' |
268+
| PFSENSE_SSL | Is https is True or False? |
269+
| PFSENSE_EXCLUDE_INT | Interfaces that should be ignored during import |
270+
261271
#### :eight_spoked_asterisk: Satellite Configuration
262272

263273
| Option | Description |

docs/guide/001.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ In addition to the individual "Delete" button, each report also has a button to
4646
the report (System Event, Device Scan, Web Service Monitoring, ICMP Monitoring)
4747

4848

49-
[Next - Settings](./002.md)
49+
[Next (3) - Settings](./002.md)
5050

51-
[Back - Guide for the first start](../FIRST_START_GUIDE.md)
51+
[Back (1) - Guide for the first start](../FIRST_START_GUIDE.md)
5252

5353
[Guide_002]: https://raw.githubusercontent.com/leiweibau/Pi.Alert/assets/guide_002.png "Guide_002"
5454
[Guide_003]: https://raw.githubusercontent.com/leiweibau/Pi.Alert/assets/guide_003.png "Guide_003"

docs/guide/002.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ In addition to section 4, this section contains the actual settings. This area i
4545

4646
Here you can edit the pialert.conf file. You can look up an overview of the parameters on the "Help / FAQ" page (*Explanations for the file "pialert.conf"*) in Pi.Alert.
4747

48-
[Next - Additional documents](./003.md)
48+
[Next (4) - Additional information about imports](./003.md)
4949

50-
[Back - Discreet buttons and menus](./001.md)
50+
[Back (2) - Discreet buttons and menus](./001.md)
5151

5252
[Guide_005]: https://raw.githubusercontent.com/leiweibau/Pi.Alert/assets/guide_005.png "Guide_005"
5353

docs/guide/003.md

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,71 @@
1-
# Additional documents
1+
# Additional information about imports
22
<!--- --------------------------------------------------------------------- --->
33

4-
[Bulk Editor](../BULKEDITOR.md)
5-
6-
[Network Relationship](../NETWORK_RELATIONSHIP.md)
7-
8-
[Web service monitoring](../WEBSERVICES.md)
9-
10-
[Satellite Config](../SATELLITES.md)
4+
### Pi-hole DNS (v5 or v6) ###
115

6+
To use this feature, Pi.Alert requires the password for Pi-hole. During this import, an active host is recognized by
7+
the fact that it has sent a DNS query to Pi-hole within the last 5 minutes. If the time of the last query was longer ago,
8+
the host is marked as inactive or added to the device list as an inactive new host. In isolated cases,
9+
Pi.Alert may repeatedly recognize a host despite it having been deleted, even though the host has long since ceased to exist. When using this importer,
10+
the problem may also lie with Pi-hole. The maximum number of clients to be imported can also be specified in the configuration.
11+
By default, this value is set to “100” and must be adjusted if necessary.
1212

13+
### Pi-hole DHCP. (v5 or v6) ###
1314

14-
[Back - Settings](./002.md)
15+
To use this feature, Pi.Alert requires the password for Pi-hole. This list is primarily used for name resolution.
16+
17+
### Fritzbox ###
18+
19+
To use this feature, the Fritzbox must be configured to use a username and password.
20+
Since multiple users can be created on the Fritzbox, you can also create a separate account for Pi-Alert. The import queries all active hosts.
21+
These can be located in the guest Wi-Fi or in the standard Wi-Fi. IP-less devices such as the Fritz Powerline adapters are also detected here.
22+
23+
### Mikrotik ###
24+
25+
Pi.Alert requires a user name and password for this function. During import, the active hosts are collected from the DCHP server.
26+
27+
### UniFi ###
28+
29+
Pi.Alert requires a user name and password for this function. Active hosts are collected during import.
30+
31+
### OpenWRT ###
32+
33+
Pi.Alert requires a user name and password for this function. In addition, the “JSON-RPC” package ([link](https://github.com/openwrt/luci/wiki/JsonRpcHowTo)) must be installed on the OpenWRT device.
34+
The active hosts are recorded during import.
35+
36+
### AsusWRT ###
37+
38+
Pi.Alert requires a user name and password for this function. Active hosts are collected during import.
39+
40+
### pfSense ###
41+
42+
Pi.Alert requires an API key for this function. This can be generated after installing the “pfSense REST API” ([link](https://pfrest.org/)) on the pfSense firewall.
43+
To increase the speed at which inactive hosts are detected, I changed another setting within pfSense:
44+
45+
```
46+
System → Advanced → System Tunables
47+
48+
Click on "Add"
49+
50+
Insert:
51+
Tunable: net.link.ether.inet.max_age
52+
Value: e.g. 600
53+
```
54+
55+
The background here is how long an entry in the pfSense ARP table is valid, i.e., how long a host is flagged as “active” by pfSense. This also affects the marking of active hosts in the DHCP leases.
56+
When importing from pfSense, all DHCP leases are imported and the active hosts are also marked as active by Pi.Alert. In addition, the hosts from the pfSense ARP table are also imported, which can include all interfaces,
57+
even those that are not managed by a DHCP server. This means that hosts may also be detected on the “WAN” interface. For this reason, this interface is excluded by default in the Pi.Alert configuration.
58+
59+
60+
## Satellite Scan ##
61+
62+
arp-scan, Pi-hole DNS, Pi-hole DHCP, Mikrotik, UniFi, OpenWRT, AsusWRT
63+
64+
65+
66+
[Next (5) - Additional documents](./004.md)
67+
68+
[Back (3) - Settings](./002.md)
1569

1670
[Guide_005]: https://raw.githubusercontent.com/leiweibau/Pi.Alert/assets/guide_005.png "Guide_005"
1771

docs/guide/004.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Additional documents
2+
<!--- --------------------------------------------------------------------- --->
3+
4+
[Bulk Editor](../BULKEDITOR.md)
5+
6+
[Network Relationship](../NETWORK_RELATIONSHIP.md)
7+
8+
[Web service monitoring](../WEBSERVICES.md)
9+
10+
[Satellite Config](../SATELLITES.md)
11+
12+
13+
14+
[Back (4) - Additional information about imports](./002.md)
15+
16+
[Guide_005]: https://raw.githubusercontent.com/leiweibau/Pi.Alert/assets/guide_005.png "Guide_005"
17+
18+
19+
20+

0 commit comments

Comments
 (0)