?
Solved

Block subnet in windows XP

Posted on 2010-09-06
13
Medium Priority
?
673 Views
Last Modified: 2012-05-10
Overall we have three datacenters in our country. We are in the processing of bringing down one datacenter for power maintenance.
One of the BCP requirements is to ensure critical people are moving the other two offices on that day and able to work with the alternative arrangement made.
To simulate the shutdown day scenario we have to block the routing to the subnet (of the datacenter which is going down) at the test users desktop and laptop and ask the user to test their applications. In this scenario we are ensuring that any servers hosted in the targeted datacenter cannot be contacted by the user.
We did that by Symantec firewall rules on laptops, but unfortunately we now have SEP (Symantec end point protection on laptops) which is locked globally for any configuration changes. Even windows firewall is disabled thru policy.
In a nutshell we won’t be able to anything with firewall due to global restrictions, even installing a freeware to block the subnet. With the minimum restrictions we have to set the subnet restriction. Is the anything possible thru “netsh” or “route add” to block the subnet of targeted datacenter for the BCP test?
Appreciate your help in advance.
0
Comment
Question by:moorthy_kulumani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +3
13 Comments
 
LVL 6

Expert Comment

by:Hisham_Elkouha
ID: 33612654
why don't you disable the restriction of Symantec
0
 
LVL 20

Expert Comment

by:woolnoir
ID: 33612663
route add datacentre_network mask whatever_the_mask_is 127.0.0.1 ( which should route the traffic at the loopback interface, thus dropping it) <- that should work in theory.
0
 
LVL 26

Expert Comment

by:Fred Marshall
ID: 33612776
Isn't there a router?
Normally the router (which may also be the gateway) is the place to do something like this, rather than on all individual PCs.

Route the "blocked" subnet back to the local LAN so the packets will be dropped.  Something like that.....
0
Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

 
LVL 20

Expert Comment

by:woolnoir
ID: 33612782
I suggested the local PC as the original poster mentioned 'test users' assuming thats not a whole subnet, it would be easier to make the changes on a few machines - changing it on a router would be a lot less granular in the users it effects.
0
 
LVL 26

Expert Comment

by:Fred Marshall
ID: 33612820
Yes.  If there are only "test users" and not a "test site" then the only reasonable way to do what I suggested would be to put the "test users" in a sub-subnet that would be a subnet of the existing one and then route their traffic at the router.   At least that generally makes the router entries compact and in one place.
0
 
LVL 12

Expert Comment

by:acl-puzz
ID: 33612916
Hi

Xp is equipped with IPSEC and you know how much capable it is.
Simply goto run type mmc and add snap-in for IPSEC policy management and then save it and to see how to work on it use this video.

http://www.youtube.com/watch?v=amHaBmOlfgE&feature=related
0
 
LVL 26

Assisted Solution

by:Fred Marshall
Fred Marshall earned 400 total points
ID: 33614008
I'm sorry if I missed it but I don't see where you plan to reroute the testers to a new server IP.  That would have to be part of the approach of course- so rather than "blocking" I'd say "rerouting" - because rerouting not only blocks but redirects so to speak.....

But then, it's not very clear what the "alternative arrangement made" is.  

If you have only a few testers and the "alternative arrangement made" is to provide service from another site then I'll just make a wild assumption that it too is on another subnet.  How you get there is unclear but I'll try a scenario or two:

Let's say that the connection is via VPN.  So, you must have an IP address that each application tries to reach.  Your situation is that you want to switch from one site to another for the same service.  That means that you have to point the application to a new IP address.

For example, I have two remote sites connected by VPN.  My local subnets is 10.1.0.0, and the two remote site subnets are 10.2.0.0 and 10.3.0.0.  All /16
And I have a local gateway/router with IP 10.1.0.1 and the VPN device is 10.1.0.199

If I send a packet ot 10.2.0.xxx, it goes to the gateway.
The gateway has a route for 10.2.0.0 /16 pointing to 10.1.0.199 where the packets are put in the tunnel destined for 10.2.zzz.yyy.
Similarly, if I send a packet to 10.3.0.xxx, it goes to the gateway.
The gateway has a route for 10.3.0.0 /16 pointing to 10.1.0.199 where the packets are put in the tunnel destined for 10.3.zzz.yyy.
The packets emerge from the VPN device at the intended site on the LAN.

So, to switch from one site to another means having the packet destinations changed on the client.  And that depends on how you have things set up on the clients is all.

If there's not a VPN but perhaps an interconnecting VLAN then much the same thing applies - the packets have to be addressed to the right place.  Then, "blocking" isn't an issue because the addressing has changed.
0
 
LVL 26

Expert Comment

by:Fred Marshall
ID: 33614043
It occurs to me that you might also do something like this: (still don't know your "alternative arrangement made".  I do something like this with a fallback system arrangement.

Set up a backup system using the same IP address(es) or subnet as the system to be replaced.
Route from the test client to the backup system like this:

1) Set up a backup system router/VPN device on a *new or different* local IP.

2) Set up a route on the local test computer that points to this device when packets are destined for the server/application.  (This in lieu of being directed to the "normal" route be it direct to a VPN device or to the LAN gateway).

3) Have the backup system set up with the same IP addresses as the normally targeted system.  

This way only the test machines will access only the backup system and there will be no confusion with the "normal" systems still running.
0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 33617064
Hi Hisham_Elkouha:
This is possible, but this is length approvals I have to follow, I don’t have time to do that….

Hi woolnoir:
Unable to route add to loopback ip.
route add 110.15.128.0 mask 255.255.128.0 127.0.0.1
The route addition failed: The parameter is incorrect.


Hi fmarshall:
On putting a specific test subnet, I thought about it earlier, Putting a special subnet for test users need to be done with lot of cabling re work etc…and I have more then 80 test users sitting across two buildings…
"Alternative arrangement made" – means some of the system/application going down DR will be invoked from other site. There will not be any VPN or another subnet available on the site which is going down.

acl-puzz:
I will check IP sec and come back..
0
 
LVL 26

Expert Comment

by:Fred Marshall
ID: 33619543
Depending on the network topology, you should be able to run multiple subnets on the same wires - not even VLANs are necessary.  As long as the switches are Layer 2 then all should be fine.  It's more the routers/firewalls that I'd be more concerned about.

If there is going to be application service from another site, isn't the subnet there different?

The situation is still pretty unclear to me.
0
 
LVL 6

Accepted Solution

by:
RobArdill earned 1600 total points
ID: 33634481
Windows XP/Vista does not support reject or blackhole arguments via route. You need to use unused IP address (e.g. 192.168.32.254) must be used as the target gateway:

route add 110.15.128.0 mask 255.255.128.0 <unused address on local segment>

0
 
LVL 6

Expert Comment

by:RobArdill
ID: 33634493
Use the -p to make the route permanent.
0
 
LVL 3

Author Closing Comment

by:moorthy_kulumani
ID: 33737325
Thanks a lot everyone
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…
Suggested Courses
Course of the Month12 days, 14 hours left to enroll

777 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