10 Simple Steps to Blocking IP Addresses Using Windows Firewall

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

Windows server has a firewall which also help us to prevent malicious attacks. This firewall looks at anything attempting to access your server and compares it to a set of rules. If it breaks the rules, your firewall doesn’t let the traffic through.

This firewall can also block certain IP addresses from connecting to your server. On a Windows server, we do this by logging into your server via RDP and creating a new firewall rule listing the IP addresses you want to block.

If you are using Windows and have not installed a “complete” security suite for the operating system, you are likely using Windows Firewall to protect the operating system.

While there are standalone firewall applications as well, or hardware firewalls, it is likely that most users make use of the built-in firewall of the operating system.

Configuration of the firewall is not as straightforward as it can be, considering that you first need to find out how to open it, and then work your way through the menus that it makes available.

STEP 1 : Login to your server’s RDP.

STEP 2 : Click Start >> Windows Administrative Tools >> Windows Firewall with Advanced Security.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 3 : Click Inbound Rules

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 4 : Click on New Rule. This opens the New Inbound Rule Wizard, which will guide you through adding your new firewall rule.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 5 : To begin creating an IP block rule, select the radio button next to Custom. Then press Next.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 6 : Now, make sure the radio button for All programs is selected and click Next.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 7 : The next screen asks you which ports and protocols your rule will apply to. Generally, with an IP block, you will leave this screen as it is, with the Protocol type set to Any. Click Next.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 8 : Now you can block the IP addresses. Look for the section with the header Which remote IP addresses does this rule apply to? Select the radio button next to These IP addresses.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 9 : Click Add. Type in the IP address you want to block and click OK. Repeat this for any IP addresses you want to block. You can also block IP address ranges. Once you’ve added all the IPs you want to block, click Next.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

STEP 10 : Select the radio button next to Block the connection and click Next.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

For most IP blocks, you’ll want to make sure all three boxes are checked: Domain, Private, and Public.

STEP 11 : Name your rule. You can keep adding IP addresses to this rule, so make sure you name it something memorable! Then click Finish.

10 Simple Steps to Blocking IP Addresses Using Windows Firewall

Now we have successfully added a rule in Windows Firewall to block any IPs you don’t want accessing your server! If you ever need to add more IPs to this rule, double click on the rule to open the rule properties and click Scope. Then add new IP addresses just like you added them before.

Edit or Remove the rule

You can edit or remove the rule at any time. To edit it, double-click on it in the firewall controls and use the tabs to make modifications to the rule set.

To delete it, simply select it and hit the delete key on your keyboard afterwards. All you need to do then is confirm the prompt and the rule gets removed from the system again.

Kindly post your valuable comments to improve us, to know about Basics of Linux cat command : Click Here

You may also like...