• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

How to temporarily prevent a connection with one or more IP in the same subnet

Let's say i have a server and other 3 devices, and, so all my devices/server are on the same subnet. From 1:00am to 2:00am i want temporarily prevent connection/ping from to and but not with Is there any way to do it for example with a scheduled script?

Thank you.
1 Solution
QlemoBatchelor and DeveloperCommented:
Depending on the OS on, you could use the Windows Firewall to block outgoing connections to those addresses, with the firewall active only on schedule. This works with Vista and up.

Or you could use a Personal Firewall application to do the same.

Or - and that is a cheap hack - create host routes for those addresses with a gateway which will not forward the requests (should be any device other than
E.g. a
    route add
where .254 is non-existent, is preventing any access to However, traffic is produced.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now