Installation
This section provides detailed instructions for installing nFW on your Linux system.
Installation from Packages
Pre-built packages for many Linux distributions are available in the repository.
Install the repository by following instructions at http://packages.ntop.org/
Install the nfw package.
License Installation
nFW requires a valid license file to operate. The license file should be placed in one of these locations:
nfw.license(current directory)/etc/nfw.license(system-wide)
License Management Commands
# Verify installation
nfw --version
# Display system ID for license generation
nfw --show-system-id
# Check license validity
nfw --check-license
# Check maintenance status
nfw --check-maintenance
Contact ntop.org or visit http://shop.ntop.org/ to obtain a commercial license.
Post-Installation Steps
After installing nFW, perform these configuration steps:
Verify Installation
nfw --version nfw --help
Configure Netfilter
Set up iptables rules (see Netfilter Setup for details):
# For bridge mode sudo /usr/share/nfw/scripts/bridge_setup.sh lan0 wan0 # For single interface mode sudo /usr/share/nfw/scripts/default_setup.sh eth0
Install License
Copy your license file:
sudo cp nfw.license /etc/nfw.license nfw --check-license
Test Basic Operation
Run nFW with minimal configuration:
sudo nfw -q 0 -vPress Ctrl+C to stop. You should see nFW start successfully.
Next Steps
Quick Start: Follow the Quick Start Guide guide for your first deployment
Netfilter Setup: Configure netfilter rules in Netfilter Setup
ntopng Integration: Set up ntopng integration in ntopng Integration
Uninstallation
Ubuntu/Debian:
sudo apt-get remove nfw
sudo apt-get purge nfw # Also remove configuration files
CentOS/Rocky:
sudo yum remove nfw
Remove Configuration
sudo rm -rf /etc/nfw
sudo rm -f /etc/nfw.license