How to block single IP address or range of IP addresses from Windows Firewall 2008?

Following article will assist you to block single IP address or a range of IP addresses in default firewall of Windows Server 2008 R2 OS.

  1. Login to your VPS via RDP.

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

    Open Windows Firewall with Advanced Security

  3. From the left pane of Firewall window, click on the Inbound Rules option.

    Click on Inbound Rules Option



  4. From the right pane, click on New Rule.

    Click on New Rule Option

  5. A New Inbound Rule Wizard will be opened. Here, click on Custom button and then click on Next.

    Select Custom Rule Option under Rule Type

  6. Make sure that All Programs option is selected. Then, click on Next.

    Select All Programs Option under Program Section

  7. In the Protocol and Ports wizard, leave all the options at its default and click on Next.

    Select Protocol Type under Protocol and Ports Section

  8. In the Scope wizard, you will see two boxes. The first one is for local IP addresses and the second one is for remote IP addresses. In this scenario, we are trying to block an outside (remote) IP address from accessing anything on the server so we will need to add the IP address to this section only as it will not be a local IP address.



  9. Click on the second option that says These IP addresses in the remote section. Click on the Add button. In the next window we will be adding single IP address to the rule. You can also add an entire range at this point if you wish. After adding IP address(es), click on OK and then click on Next.

    Specify Remote IP Address or its Range under Scope Section

  10. Select Block the connection option from the Action wizard and then click on Next.

    Select Block the Connection Option under Action Section

  11. Leave all of the options checked in the Profile wizard. This will block the IP address, no matter the connection they are trying to use. Then, click on Next.

    Select Profiles to which This Rule will be Applied

  12. Mention the name of the rule in the Name wizard (it can be something that you can remember in case you wish to remove or edit it in the future). Click on Finish.

    Specify Name and Descripion of the Rule



  • 0 Users Found This Useful

Was this answer helpful?


Related Articles

How to Check Logs for Windows Server/VPS Reboot?

At Windows event viewer, you can examine server logs for all events. To check server reboot logs...

How to Remove a Remote Desktop User from Windows VPS?

This article will assist you to remove a Remote Desktop user from Windows VPS. Login to your...

How to install SmarterStats in Windows VPS?

SmarterStats is a complete Web log analytics tool that provides relevant, accurate, and detailed...

How to enable/disable Internet Explorer Enhanced Security Configuration (IE ESC) in Windows Server 2008 & 2012?

Enhanced Security Configuration (ESC) mode eliminates the chances of an attack on the server by...

How To Synchronize Windows VPS Clock With Internet Time Server?

Sometimes your Windows VPS may get drift away from the correct time by as many as a few seconds...