Giter Site home page Giter Site logo

firewall_log's Introduction

Firewall log

A command-line application showing connections recently blocked by Windows Firewall.

Usage

git clone https://github.com/milan11/firewall_log.git
cd firewall_log/FirewallLog
dotnet build

Then, run FirewallLog.exe as Administrator. Running as Administrator can be configured to happen automatically:

  • FirewallLog.exe Properties
  • Compatibility tab
  • check Run this program as an administrator

The application waits for the Enter key at the end (by calling Console.ReadLine()) so that the console window stays open.

When to use

Showing of the recently blocked connections helps to see what Allow rules to create if something does not work. This utility shows the details needed to carefully craft the most specific rules.

Case A: To see blocked incoming connections

By default, Windows Firewall blocks all incoming connections. When you run some server on your computer and connecting to it does not work, you can run this utility to see blocked incoming connections (connections marked as IN in the output).

Case B: To see blocked outgoing connections

By default, Windows Firewall allows all outgoing connections.

If you want to block all outgoing connections globally by default by:

  • start Windows Defender Firewall with Advanced Security
  • in the left tree, right click on: Windows Defender Firewall with Advanced Security on Local Computer
  • choose Properties
  • choose tab with your profile
  • select Outbound connections: Block

Then you will often want to check what was actually blocked. This utility shows these connections marked as OUT in the output.

Output

Screenshot

Each entry contains:

<date> <time> <direction IN/OUT> <protocol TCP/UDP> <source IP> <source port> > <target IP> <target PORT> <port service> <process executable name> <process PID> <process executable path>

If it is a service, the entry additionally contains (in parentheses):

<service name> <service display name> <service executable path>

References

firewall_log's People

Contributors

milan11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.