96 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| type: "topic"
 | |
| created: "2024-01-28T04:48:03.346Z"
 | |
| updated: "2024-01-29T18:47:51.859Z"
 | |
| ---
 | |
| 
 | |
| # ntopng
 | |
| 
 | |
| ```bash
 | |
| # https://learn.microsoft.com/en-us/windows/wsl/wsl-config
 | |
| code-insiders .wslconfig
 | |
| ```
 | |
| 
 | |
| ```conf
 | |
| [wsl2]
 | |
| networkingMode=mirrored
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| wsl --export Ubuntu "L:\Ubuntu\Ubuntu-ntopng-001.tar"
 | |
| wsl --unregister Ubuntu
 | |
| wsl --import Ubuntu-ntopng Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-001.tar"
 | |
| # wsl --export Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-002.tar"
 | |
| # del "L:\Ubuntu\Ubuntu-ntopng-002.tar"
 | |
| ```
 | |
| 
 | |
| ```yaml
 | |
| Name: Ubuntu-ntopng
 | |
| Command Line: wsl.exe -d Ubuntu-ntopng
 | |
| Tab Title: Ubuntu-ntopng
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| sudo -i
 | |
| apt-get update
 | |
| apt upgrade -y
 | |
| exit
 | |
| exit
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| sudo -i
 | |
| ip a
 | |
| lsb_release -a
 | |
| apt-get install links unzip git nano ncdu -y
 | |
| ncdu
 | |
| timedatectl set-timezone America/Phoenix
 | |
| timedatectl
 | |
| nano /etc/hosts
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| sudo -i
 | |
| apt-get install software-properties-common wget
 | |
| add-apt-repository universe
 | |
| wget https://packages.ntop.org/apt-stable/22.04/all/apt-ntop-stable.deb
 | |
| apt install ./apt-ntop-stable.deb
 | |
| apt-get clean all
 | |
| apt-get update
 | |
| apt-get install pfring-dkms nprobe ntopng n2disk cento -y
 | |
| exit
 | |
| exit
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| wsl --export Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-002.tar"
 | |
| wsl --unregister Ubuntu-ntopng
 | |
| wsl --import Ubuntu-ntopng Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-002.tar"
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| lsof -i tcp
 | |
| # http://localhost:3000
 | |
| # preferences: Network Discovery: Active Network Discovery
 | |
| # http://localhost:3000/lua/macs_stats.lua?devices_mode=source_macs_only
 | |
| # http://localhost:3000/lua/system_stats.lua?ifid=-1
 | |
| ethtool -K loopback0 gro off gso off tso off
 | |
| # http://localhost:3000/lua/pro/admin/edit_device_exclusions.lua
 | |
| # The Device/MAC Address Tracking is still learning the devices...
 | |
| # http://localhost:3000/lua/discover.lua
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| wsl --export Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-003.tar"
 | |
| wsl --unregister Ubuntu-ntopng
 | |
| wsl --import Ubuntu-ntopng Ubuntu-ntopng "L:\Ubuntu\Ubuntu-ntopng-003.tar"
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| # sudo -i
 | |
| # ethtool -K lo gro off gso off tso off
 | |
| # apt-get install pfring-drivers-zc-dkms -y
 | |
| # exit
 | |
| # exit
 | |
| ```
 |