mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-04 17:21:23 -07:00
jokob-sk/netalertx -> netalertx/netalertx
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -56,14 +56,14 @@ docker run -d \
|
|||||||
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
||||||
-e PORT=20211 \
|
-e PORT=20211 \
|
||||||
-e APP_CONF_OVERRIDE='{"GRAPHQL_PORT":"20214"}' \
|
-e APP_CONF_OVERRIDE='{"GRAPHQL_PORT":"20214"}' \
|
||||||
ghcr.io/jokob-sk/netalertx:latest
|
ghcr.io/netalertx/netalertx:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: Your `/local_data_dir` should contain a `config` and `db` folder.
|
Note: Your `/local_data_dir` should contain a `config` and `db` folder.
|
||||||
|
|
||||||
To deploy a containerized instance directly from the source repository, execute the following BASH sequence:
|
To deploy a containerized instance directly from the source repository, execute the following BASH sequence:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/jokob-sk/NetAlertX.git
|
git clone https://github.com/netalertx/NetAlertX.git
|
||||||
cd NetAlertX
|
cd NetAlertX
|
||||||
docker compose up --force-recreate --build
|
docker compose up --force-recreate --build
|
||||||
# To customize: edit docker-compose.yaml and run that last command again
|
# To customize: edit docker-compose.yaml and run that last command again
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ docker run \
|
|||||||
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
||||||
-e PORT=20211 \
|
-e PORT=20211 \
|
||||||
-e APP_CONF_OVERRIDE='{"GRAPHQL_PORT":"20214"}' \
|
-e APP_CONF_OVERRIDE='{"GRAPHQL_PORT":"20214"}' \
|
||||||
ghcr.io/jokob-sk/netalertx:latest
|
ghcr.io/netalertx/netalertx:latest
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ Note: Your `/local_data_dir` should contain a `config` and `db` folder.
|
|||||||
|
|
||||||
If possible, check if your issue got fixed in the `_dev` image before opening a new issue. The container is:
|
If possible, check if your issue got fixed in the `_dev` image before opening a new issue. The container is:
|
||||||
|
|
||||||
`ghcr.io/jokob-sk/netalertx-dev:latest`
|
`ghcr.io/netalertx/netalertx-dev:latest`
|
||||||
|
|
||||||
> ⚠ Please backup your DB and config beforehand!
|
> ⚠ Please backup your DB and config beforehand!
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ The following steps will guide you to set up your environment for local developm
|
|||||||
### 1. Download the code:
|
### 1. Download the code:
|
||||||
|
|
||||||
- `mkdir /development`
|
- `mkdir /development`
|
||||||
- `cd /development && git clone https://github.com/jokob-sk/NetAlertX.git`
|
- `cd /development && git clone https://github.com/netalertx/NetAlertX.git`
|
||||||
|
|
||||||
### 2. Create a DEV .env_dev file
|
### 2. Create a DEV .env_dev file
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
netalertx:
|
netalertx:
|
||||||
#use an environmental variable to set host networking mode if needed
|
#use an environmental variable to set host networking mode if needed
|
||||||
container_name: netalertx # The name when you docker contiainer ls
|
container_name: netalertx # The name when you docker contiainer ls
|
||||||
image: ghcr.io/jokob-sk/netalertx:latest
|
image: ghcr.io/netalertx/netalertx:latest
|
||||||
network_mode: ${NETALERTX_NETWORK_MODE:-host} # Use host networking for ARP scanning and other services
|
network_mode: ${NETALERTX_NETWORK_MODE:-host} # Use host networking for ARP scanning and other services
|
||||||
|
|
||||||
read_only: true # Make the container filesystem read-only
|
read_only: true # Make the container filesystem read-only
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ docker run -d --rm --network=host \
|
|||||||
--tmpfs /tmp:uid=${NETALERTX_UID:-20211},gid=${NETALERTX_GID:-20211},mode=1700 \
|
--tmpfs /tmp:uid=${NETALERTX_UID:-20211},gid=${NETALERTX_GID:-20211},mode=1700 \
|
||||||
-e PORT=20211 \
|
-e PORT=20211 \
|
||||||
-e APP_CONF_OVERRIDE={"GRAPHQL_PORT":"20214"} \
|
-e APP_CONF_OVERRIDE={"GRAPHQL_PORT":"20214"} \
|
||||||
ghcr.io/jokob-sk/netalertx:latest
|
ghcr.io/netalertx/netalertx:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
> Runtime UID/GID: The image defaults to a service user `netalertx` (UID/GID 20211). A separate readonly lock owner also uses UID/GID 20211 for 004/005 immutability. You can override the runtime UID/GID at build (ARG) or run (`--user` / compose `user:`) but must align writable mounts (`/data`, `/tmp*`) and tmpfs `uid/gid` to that choice.
|
> Runtime UID/GID: The image defaults to a service user `netalertx` (UID/GID 20211). A separate readonly lock owner also uses UID/GID 20211 for 004/005 immutability. You can override the runtime UID/GID at build (ARG) or run (`--user` / compose `user:`) but must align writable mounts (`/data`, `/tmp*`) and tmpfs `uid/gid` to that choice.
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ services:
|
|||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
# Use this line for stable release
|
# Use this line for stable release
|
||||||
image: "ghcr.io/jokob-sk/netalertx:latest"
|
image: "ghcr.io/netalertx/netalertx:latest"
|
||||||
# Or, use this for the latest development build
|
# Or, use this for the latest development build
|
||||||
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
|
# image: "ghcr.io/netalertx/netalertx-dev:latest"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cap_drop: # Drop all capabilities for enhanced security
|
cap_drop: # Drop all capabilities for enhanced security
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Use the following Compose snippet to deploy NetAlertX with a **static LAN IP** a
|
|||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
netalertx:
|
netalertx:
|
||||||
image: ghcr.io/jokob-sk/netalertx:latest
|
image: ghcr.io/netalertx/netalertx:latest
|
||||||
...
|
...
|
||||||
networks:
|
networks:
|
||||||
swarm-ipvlan:
|
swarm-ipvlan:
|
||||||
|
|||||||
@@ -32,12 +32,22 @@ NetAlertX is a lightweight, flexible platform for monitoring networks, tracking
|
|||||||

|

|
||||||
|
|
||||||
- **Real-Time Notifications**: Receive immediate alerts for new devices, disconnected devices, or unexpected changes.
|
- **Real-Time Notifications**: Receive immediate alerts for new devices, disconnected devices, or unexpected changes.
|
||||||
- **Customizable Triggers**: Define rules based on device type, IP ranges, presence, or other network parameters.
|
- **Customizable Filters and Rules**: Define rules based on device type, IP ranges, presence, or other network parameters.
|
||||||
- **Alert Deduplication & Suppression**: Avoid unnecessary noise with smart alert handling.
|
- **Alert Deduplication & Suppression**: Avoid unnecessary noise with smart alert handling.
|
||||||
- **Historical Logs**: Maintain a complete timeline of network events for review and reporting.
|
- **Historical Logs**: Maintain a complete timeline of network events for review and reporting.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Workflows for implementing Business rules
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Custom rules**: Cretae custom flows and update device information based to scan results.
|
||||||
|
- **Customizable Triggers**: Define rules based on any device data, including device type, IP ranges, presence, or other network parameters.
|
||||||
|
- **Automated Updates**: Automate repetitive tasks, making network management more efficient.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Multi-Channel Notification
|
## Multi-Channel Notification
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -12,7 +12,7 @@ docker run --rm --network=host \
|
|||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
||||||
-e PORT=20211 \
|
-e PORT=20211 \
|
||||||
ghcr.io/jokob-sk/netalertx:latest
|
ghcr.io/netalertx/netalertx:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
@@ -70,7 +70,7 @@ If you use a custom `PUID` (e.g. `0`) and `GUID` (e.g. `100`) make sure you also
|
|||||||
docker run -it --rm --name netalertx --user "0" \
|
docker run -it --rm --name netalertx --user "0" \
|
||||||
-v /local_data_dir:/data \
|
-v /local_data_dir:/data \
|
||||||
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
--tmpfs /tmp:uid=20211,gid=20211,mode=1700 \
|
||||||
ghcr.io/jokob-sk/netalertx:latest
|
ghcr.io/netalertx/netalertx:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Wait for logs showing **permissions being fixed**. The container will then **hang intentionally**.
|
2. Wait for logs showing **permissions being fixed**. The container will then **hang intentionally**.
|
||||||
@@ -95,7 +95,7 @@ docker run -it --rm --name netalertx --user "0" \
|
|||||||
services:
|
services:
|
||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
image: "ghcr.io/jokob-sk/netalertx"
|
image: "ghcr.io/netalertx/netalertx"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
cap_drop: # Drop all capabilities for enhanced security
|
cap_drop: # Drop all capabilities for enhanced security
|
||||||
- ALL
|
- ALL
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ As per user feedback, we’ve re-introduced the ability to control which user th
|
|||||||
services:
|
services:
|
||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
image: "ghcr.io/jokob-sk/netalertx"
|
image: "ghcr.io/netalertx/netalertx"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
|||||||
@@ -80,9 +80,9 @@ services:
|
|||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
# Use this line for the stable release
|
# Use this line for the stable release
|
||||||
image: "ghcr.io/jokob-sk/netalertx:latest"
|
image: "ghcr.io/netalertx/netalertx:latest"
|
||||||
# Or use this line for the latest development build
|
# Or use this line for the latest development build
|
||||||
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
|
# image: "ghcr.io/netalertx/netalertx-dev:latest"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ You can specify the DNS server in the docker-compose to improve name resolution
|
|||||||
services:
|
services:
|
||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
image: "ghcr.io/jokob-sk/netalertx:latest"
|
image: "ghcr.io/netalertx/netalertx:latest"
|
||||||
...
|
...
|
||||||
dns: # specifying the DNS servers used for the container
|
dns: # specifying the DNS servers used for the container
|
||||||
- 10.8.0.1
|
- 10.8.0.1
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ services:
|
|||||||
netalertx:
|
netalertx:
|
||||||
container_name: netalertx
|
container_name: netalertx
|
||||||
# use the below line if you want to test the latest dev image
|
# use the below line if you want to test the latest dev image
|
||||||
# image: "ghcr.io/jokob-sk/netalertx-dev:latest"
|
# image: "ghcr.io/netalertx/netalertx-dev:latest"
|
||||||
image: "ghcr.io/jokob-sk/netalertx:latest"
|
image: "ghcr.io/netalertx/netalertx:latest"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cap_drop: # Drop all capabilities for enhanced security
|
cap_drop: # Drop all capabilities for enhanced security
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
containers = {
|
containers = {
|
||||||
netalertx = {
|
netalertx = {
|
||||||
image = "ghcr.io/jokob-sk/netalertx:${cfg.imageTag}";
|
image = "ghcr.io/netalertx/netalertx:${cfg.imageTag}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=host"
|
"--network=host"
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ printf "%b\n" "${GREEN}[INSTALLING] ${RESET}Cloning app
|
|||||||
printf "%b\n" "--------------------------------------------------------------------------"
|
printf "%b\n" "--------------------------------------------------------------------------"
|
||||||
|
|
||||||
mkdir -p "$INSTALL_DIR"
|
mkdir -p "$INSTALL_DIR"
|
||||||
git clone https://github.com/jokob-sk/NetAlertX.git "$INSTALL_DIR/"
|
git clone https://github.com/netalertx/NetAlertX.git "$INSTALL_DIR/"
|
||||||
|
|
||||||
if [ ! -f "$INSTALL_DIR/front/buildtimestamp.txt" ]; then
|
if [ ! -f "$INSTALL_DIR/front/buildtimestamp.txt" ]; then
|
||||||
date +%s > "$INSTALL_DIR/front/buildtimestamp.txt"
|
date +%s > "$INSTALL_DIR/front/buildtimestamp.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user