Back to articles
AI & Cloud

Deploy NetAlertX on Linux VPS: Early Detection Solution for Unauthorized Devices in Enterprise VPN Networks

Guide to deploying NetAlertX on a Linux VPS for early detection of unauthorized devices in enterprise VPN networks, offering a self-hosted, efficient, and customizable network...

DPTCloud Engineering4 min read
Deploy NetAlertX on Linux VPS: Early Detection Solution for Unauthorized Devices in Enterprise VPN Networks

Image credit: Couleur · Pixabay Content License

NetAlertX is an open-source network monitoring tool designed to detect unauthorized or suspicious devices within internal networks. In enterprise environments using VPNs, early detection of unauthorized devices is critical to protect data and systems from cybersecurity threats.

Deploying NetAlertX on a Linux VPS provides a self-hosted, highly customizable, and efficient solution for monitoring internal networks. This approach is ideal for businesses that require tight control over network security and monitoring capabilities.

Prerequisites for Deployment

Before deploying NetAlertX on a Linux VPS, ensure the following requirements are met:

  • Linux VPS running Ubuntu 20.04 or 22.04.
  • SSH access with root or sudo privileges.
  • Docker and Docker Compose installed.
  • Internal network range (e.g., 192.168.1.0/24) and details of currently active devices.

Deploying NetAlertX on Linux VPS

We will use Docker to deploy NetAlertX quickly and easily.

Step 1: Install Docker and Docker Compose

Run the following commands on your VPS to install Docker and Docker Compose:

sudo apt update
sudo apt install -y docker.io docker-compose
sudo systemctl enable docker
sudo systemctl start docker

Step 2: Create Directory and Configuration File

Create a directory to store NetAlertX data:

mkdir -p ~/netalertx/data
cd ~/netalertx

Create the docker-compose.yml file:

version: '3.8'

services:
  netalertx:
    image: netalertx/netalertx:latest
    container_name: netalertx
    ports:
      - "8080:80"
    volumes:
      - ./data:/app/data
    environment:
      - TZ=Asia/Ho_Chi_Minh
      - DB_PATH=/app/data/netalertx.db
    restart: unless-stopped

Step 3: Start NetAlertX

Run the following command to start NetAlertX:

docker-compose up -d

NetAlertX will run on port 8080. Access http://:8080 to reach the admin interface.

Configuration and Optimization

After starting NetAlertX, configure it to monitor your internal network:

  • Access the admin interface and set your internal network range (e.g., 192.168.1.0/24).
  • Define rules to detect unauthorized devices (e.g., devices not in the whitelist).
  • Set up notifications via email or webhook when unauthorized devices are detected.

Verification and Testing

To verify NetAlertX is working correctly:

  • Access the admin interface and check if any devices are being detected.
  • Connect a new device to the network and verify NetAlertX detects it.
  • Ensure notifications are sent when unauthorized devices are detected.

Troubleshooting

  • NetAlertX fails to start: Check Docker logs using docker logs netalertx.
  • No device detection: Verify the internal network configuration and ensure the device is active on the network.
  • No notifications received: Check email or webhook settings in the admin interface.

References

Related infrastructure & engineering guides: High-RAM Cloud VPS for Self-Hosted LLMs & API Gateways

DPTCloud Tier III Infrastructure

High-RAM Cloud VPS Plans Optimized for AI, Databases & Cache

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02Recommended

VPS-4E

297.000 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe
ECO · vn-02

VPS-5E

614.900 ₫ / mo

10% VAT included

  • CPU: 8 vCPU
  • RAM: 16 GB
  • SSD: 100 GB NVMe
ADVANCED · vn-03Recommended

VPS-4T

548.900 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478