?
Solved

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

Posted on 2009-05-13
1
Medium Priority
?
298 Views
Last Modified: 2013-12-23
Let's say i have a server 192.168.0.1/24 and other 3 devices 192.168.0.2/24, 192.168.0.3/24 and 192.168.0.4/24, so all my devices/server are on the same subnet. From 1:00am to 2:00am i want temporarily prevent connection/ping from 192.168.0.1 to 192.168.0.2 and 192.168.0.3 but not with 192.168.0.4. Is there any way to do it for example with a scheduled script?

Thank you.
0
Comment
Question by:mathayus_ITA
1 Comment
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 24375612
Depending on the OS on 192.168.0.1, 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 192.168.0.1).
E.g. a
    route add 192.168.0.2  192.168.0.254
where .254 is non-existent, is preventing any access to 192.168.0.2. However, traffic is produced.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question