Created on 10-06-2023 05:32 AM Edited on 10-18-2023 11:44 PM By Anthony_E
Description | This article discusses triggering dummy traffic using Windows Subsystem for Linux to analyze how the FortiGate is handling it. |
Scope |
Use this method to generate unattended traffic of a certain type (TCP/UDP/ICMP), especially in situations when the issue is happening randomly and cannot trigger it on will. of a certain type. |
Solution |
Windows Linux Subsystem In Windows 10 and 11 and use it to run scrips:
Step1. Open PowerShell and run:
wsl --list --online<----- To see a list of available distros and run. wsl --install -d <DistroName> <----- To install a distro.
Step2. Verify the of the WSL instance:
$ip route | grep default
$ip a <----- Find the IP associated to the dev wifi0.
Note: WSL shares Windows OS IP.
Step3. Install all the necessary packages and prepare the scripts:
$sudo apt update && upgrade $sudo apt install python3 python3-pip ipython3
\\wsl$
Or alternatively
$HTTPS_Traffic_Generator2.py
Note: Attached is a simple Python script that runs for 24 Hrs and triggers every 5 seconds HTTPS traffic towards predefined 'URLs' defined on urls = ['https://www.example.com', 'https://www.fortinet.com'] Optional Scripts:
To tweak the script more refer to the original source that can be used under MIT Licenses: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.