Scenario 2: Block PING (ICMP Echo Request) to Another Machine on the Network

Objective: Block ICMP (PING) requests to a specific IP address on the local network.

Steps:

    Using Windows Firewall GUI:
        Open Windows Defender Firewall from the Control Panel.
        Click Advanced settings to open the Windows Firewall with Advanced Security window.
        Select Outbound Rules on the left-hand side.
        Click New Rule on the right-hand side.
        Choose Custom, then Protocol and Ports, and select ICMPv4 under the protocol type.
        Set the Local IP address to "Any IP address" and the Remote IP address to the IP address of the target machine (e.g., 192.168.1.100).
        Select Block the connection and click Next until the rule is created.
        Name the rule and finish the process.

    PowerShell Command: New-NetFirewallRule -DisplayName "SSI-Lab-Block ICMP to 192.168.1.100" -Direction Outbound -Protocol ICMPv4 -RemoteAddress "192.168.1.100" -Action Block

Verification: From a command prompt, try to ping the target IP address (ping 192.168.1.100). The request should be blocked.