Skip to content

Installation

This guide explains how to install the NetDefense plugin on your OPNsense firewall. Choose the installation method that best fits your deployment scenario.

Prerequisites

Before installing the NetDefense plugin, ensure you have:

  • πŸ–₯️ OPNsense 25.7 / FreeBSD 14 (amd64)
  • πŸ”‘ Administrative (root) access to the OPNsense device
  • 🌐 Network connectivity to repo.netdefense.io
  • πŸ“‹ A NetDefense account with an available registration token

Installation Methods

One-Line Installation

The fastest method uses a single command that automatically handles repository setup and signature verification:

Terminal window
curl -sSL https://repo.netdefense.io/install.sh | sh

This script will:

  • πŸ” Download and install the repository fingerprint
  • βš™οΈ Configure the NetDefense repository
  • πŸ“¦ Update the package database
  • βœ… Install the NetDefense plugin

After the script completes, verify the installation:

Terminal window
pkg info os-netdefense

Post-Installation Steps

After installing the plugin, you’ll need to configure it before use. The NetDefense plugin will now appear in the OPNsense web interface under Services > NetDefense.

NetDefense plugin settings in OPNsense

Proceed to the Configuration guide to complete the setup.

Verifying Installation

To confirm the plugin was installed correctly:

  1. Via Web Interface: Navigate to Services > NetDefense β€” the settings page should load without errors

  2. Via Command Line:

    Terminal window
    pkg info os-netdefense
    service ndagent status

Repository Configuration Details

ParameterValueDescription
urlhttps://repo.netdefense.io/opnsenseRepository base URL
priority5Repository priority
enabledyesEnable the repository
signature_typefingerprintsSHA256 signature verification
fingerprints/usr/local/etc/pkg/fingerprints/netdefenseFingerprint directory

Security Verification

For maximum security, verify the fingerprint from multiple sources before installation: