Levo Sensor for Windows
This guide walks you through installing and configuring Levo.ai’s sensor to capture HTTP traffic on Windows systems/servers.
Prerequisites
- Windows 10 or Windows Server 2016 and above
- Administrator privileges on the Windows machine
- Npcap or WinPcap libraries installed. Please talk to us if you want to explore the commercial options for these libraries.
Installation Steps
1. Install Npcap Library
- Download the latest Npcap installer from the Npcap website.
- Run the installer with administrator privileges.
- During installation, select the following options:
- Install Npcap in WinPcap API-compatible Mode
- Install Npcap service
- Do not install the Npcap SDK
2. Download Levo’s Windows Sensor
- Download the latest Levo.ai Windows sensor executable from our downloads portal.
- Place the executable in a directory of your choice, e.g.,
C:\Program Files\Levo\levo-pcap-sensor.exe\
.
3. Configure the Sensor
- Open a Command Prompt as Administrator.
- Navigate to the directory containing the sensor executable.
- Run the following command to initialize the sensor:
levo-pcap-sensor.exe apidump ^
--satellite-url "your satellite url (http(s)://hostname|IP:port)" ^
--levo-env "your application environment (staging, production etc.)" ^
--levoai-org-id "your levo org id"
Replace the placeholders with your specific configuration details.
4. Configure Additional Options
You can add the following optional flags to the command:
--trace-export-interval "trace export interval in seconds (default 10)"
--rate-limit "number of traces per minute"
--filter "pcap filter string, eg. port 8080 and (not port 8081)"
--host-allow "host allow regex"
--path-allow "path allow regex"
--host-exclusions "host exclude regex"
--path-exclusions "path exclude regex"
4. Troubleshooting
Ensure Npcap is properly installed and that WinPcap compatibility mode is enabled
Verify Npcap Installation
- Open a Command Prompt as Administrator.
- Run the following command to check if Npcap is installed and running:
sc query npcap
- If Npcap is properly installed, you should see an output with
STATE: RUNNING
.
Verify WinPcap Compatibility Mode
- Open a Command Prompt as Administrator.
- Execute the following command:
reg query HKLM\SYSTEM\CurrentControlSet\Services\npcap\Parameters /v WinPcapCompatible
- If WinPcap compatibility mode is enabled, you should see the output with
WinPcapCompatible REG_DWORD 0x1
.
Check Windows Firewall settings
Ensure the Levo's sensor is allowed to capture traffic.
- To check existing firewall rules, execute the below command:
netsh advfirewall firewall show rule name=all
- If you cannot find the firewall rule related to the Levo sensor, you can create one:
To create a new inbound rule for the Levo sensor:
netsh advfirewall firewall add rule name="Levo.ai Sensor" dir=in action=allow program="C:\Program Files\Levo\levo-pcap-sensor.exe" enable=yes
Replace "C:\Program Files\Levo\levo-pcap-sensor.exe"
with the actual path to the Levo sensor executable.
5. Additional Support
For additional support, please contact Levo.ai technical support.