mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-20 22:30:11 -04:00
2.0 KiB
Executable File
2.0 KiB
Executable File
RSTIMPRT plugin OPNsense/Dnsmasq setup
This guide shows you how to configure OPNsense/Dnsmasq in the RSTIMPRT plugin.
1. Create an OPNsense user
- In OPNsense, navigate to System → Access → Users
- Click the + to add a new user
- Give your user a name (e.g.,
netalertx) and a Full name (e.g.,NetAlertX) - Assign privilege:
Services: Dnsmasq DNS/DHCP: Settings - Click Save
2. Create an OPNsense API key
- On the OPNsense Users screen, click the AP Key button next to your new user

- Click Yes when prompted to generate and download the new key. You'll receive a text file with a
keyand asecret.
3. Configure the RSTIMPRT plugin
-
In NetAlertX, navigate to Settings → Core → Loaded plugins and add
RSTIMPRT -
Click Save
-
Navigate to Settings → Core → Device scanners and expand
RSTIMPRT -
Under RSTIMPRT_imports, click Add
-
Enter the following connection info:
- Name: Whatever you'd like to call this REST instance (e.g.,
OPNsense Dnsmasq) - URL: Full URL to the API endpoint (e.g.,
https://192.168.1.1:8443/api/dnsmasq/leases/search) - Method:
GET - Auth Type:
basic - Username / API Key: The
keyvalue from your downloaded API key file - Password / API Secret: The
secretvalue from your downloaded API key file
- Name: Whatever you'd like to call this REST instance (e.g.,
-
In the same window, enter the following field mappings:
-
Click Update
-
Click Save

