Skip to content

Building a Windows host based firewall using windivert which can monitor as well as control all the traffic entering and leaving the host.

Notifications You must be signed in to change notification settings

MundhadHarsh/firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows Host-Based Firewall

A Firewall that goes beyond traditional firewall functionalities and integrates additional features such as packet filtering, IP blocking and Port Blocking. Provides better visibility and control over network traffic. It has the ability to provide comprehensive protection for all traffic entering and leaving an organization's network

Technology

The main technology used for the firewall is WinDivert

Windows Packet Divert (WinDivert) is a user-mode packet capture-and-divert package for Windows 10, Windows 11, and Windows Server.

WinDivert allows user-mode applications to capture/modify/drop network packets sent to/from the Windows network stack. In summary, WinDivert can:

capture network packets filter/drop network packets sniff network packets (re)inject network packets modify network packets WinDivert can be used to implement user-mode packet filters, packet sniffers, firewalls, NAT, VPNs, tunneling applications, etc.

Working of Windivert

  1. A new packet enters the network stack and is intercepted by WinDivert.sys
  2. If the packet matches the PROGRAM-defined filter, it is diverted. The program can then read the packet using a call to WinDivertRecv().
  3. If the packet does not match the filter, the packet continues as normal.
  4. PROGRAM either drops, modifies, or re-injects the packet. the program can re-inject the (modified) using a call to WinDivertSend().

image

Developed by Harsh Mundhada

gmail @mailId Linkedin@linkedin

About

Building a Windows host based firewall using windivert which can monitor as well as control all the traffic entering and leaving the host.

Resources

Stars

Watchers

Forks