Do new Windows firewall rules affect currently open connections?

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Do new Windows firewall rules affect currently open connections? was one problem in server stack that need for a solution. Below are some tips in manage your windows server when you find problem about windows, firewall, windows-firewall, , .

If I added a rule to windows firewall that blocked an ip or port currently used by an open connection, does that rule take effect immediately or only after the connection were closed?

I.e, If I have an open ssh session and then block port 22, would that terminate my ssh session, block the traffic on the connection but leave the session open, or only block future ssh connection attempts?

Changing firewall rules will definitely affect open connections. Rules take effect immediately, and the firewall will prevent any more traffic going through closed ports.


These are older articles, but they have some basic information about the Windows Firewall:

Understanding Firewall Rules | Microsoft Docs

How Windows Firewall Works | Microsoft TechNet

Leave a Reply

Your email address will not be published. Required fields are marked *