Removed
- ποΈ NetDefense Agent binary (
/usr/local/bin/ndagent) - βοΈ Service configuration
- π₯οΈ Web interface plugin files
- π Log configuration templates
- π Action configuration files
This guide explains how to completely remove the NetDefense plugin and its repository configuration from your OPNsense firewall.
Navigate to System > Firmware > Plugins
Find os-netdefense in the list of installed plugins
Click the trash icon next to the plugin to uninstall
Confirm the removal when prompted
Connect to your OPNsense device
ssh root@your-opnsense-ipStop the NetDefense service
service ndagent stopRemove the package
pkg remove os-netdefenseConfirm the removal when prompted (type y)
If you no longer want to receive NetDefense updates or want to completely remove all traces of the repository:
Remove the repository configuration file
rm /usr/local/etc/pkg/repos/netdefense.confRemove the fingerprints directory
rm -rf /usr/local/etc/pkg/fingerprints/netdefenseUpdate the package database
pkg update -fFor a complete removal of the plugin and repository configuration, run this script:
#!/bin/sh
echo "Stopping NetDefense Agent..."service ndagent stop 2>/dev/null
echo "Removing NetDefense package..."pkg remove -y os-netdefense
echo "Removing repository configuration..."rm -f /usr/local/etc/pkg/repos/netdefense.conf
echo "Removing fingerprints..."rm -rf /usr/local/etc/pkg/fingerprints/netdefense
echo "Updating package database..."pkg update -f
echo "NetDefense removal complete."After removal, verify all components are gone:
pkg info os-netdefense
service ndagent status
ls /usr/local/etc/pkg/repos/netdefense.conf
ls /usr/local/etc/pkg/fingerprints/netdefenseRemoved
/usr/local/bin/ndagent)Preserved
/var/log/)The removal process does not delete the NetDefense configuration stored in OPNsenseβs config.xml. This allows for easy reinstallation with existing settings. To completely remove the configuration data:
Navigate to System > Configuration > Backups
Click Download to create a backup of your current configuration
Edit the downloaded XML file and remove the <netdefense> section under <OPNsense>
Navigate to System > Configuration > Backups
Upload the modified configuration file
cp /conf/config.xml /conf/config.xml.backup
configctl template reload OPNsense/NetDefenseIf you want to remove NetDefense-related logs:
rm -f /var/log/ndagent.logIf you need to reinstall NetDefense in the future:
Removing the plugin from your device does not remove the device from your NetDefense account. To fully remove the device, use NDCLI:
# List devices to find the exact namendcli device list
# Remove the device from your organizationndcli device remove <device-name>This frees up the device slot in your NetDefense account.