Solved

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

Posted on 2009-05-13
1
284 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 68

Accepted Solution

by:
Qlemo earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now