How to block all incoming external IP addresses on Windows Server 2019?

Sonny B 116 Reputation points
2022-11-02T19:08:34.347+00:00

Hi,

How to block all incoming external IP addresses on Windows Server 2019?

Unfortunately, some hacker got in our network and installed ransomware on our server, so was trying to figure out how to block out external incoming ip's if possible? We want internet access, but I'm guessing if we block all then we won't get internet?

Any help is very much appreciated.
Sonny

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,627 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
530 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-11-02T19:51:58.82+00:00

    Seems there's must be more to the story. The default windows firewall blocks all incoming.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    256488-image.png


  2. Limitless Technology 44,116 Reputation points
    2022-11-08T09:17:08.03+00:00

    Hello there,

    You can create a Windows Firewall Rule to Block the IP, but Windows Firewall needs to be running on the server.

    Click on Start >> Administrative tools >> Windows Firewall with Advanced Security.

    Go to Inbound Rule >> New Rule

    Click on Custom and on the next page select All Programmes.

    You are now at Protocol & Ports wizard. Here you can create specific inbound rules to block the external IP.

    Create an Inbound Port Rule https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-inbound-port-rule

    Hope this resolves your Query !!

    -----------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments