How to drop packets in Windows XP ?

W

Wizzo

Hi,

This may appear as a newbie question, so please bear with me :-D

Windows XP allows static routes to be defined. e.g. if the network
192.168.4.0 / 255.255.255.0 is to be reached via 192.168.1.1, the following
command can be used:

route -p add 192.168.4.0 mask 255.255.255.0 192.168.1.1

My question is: I need to drop all the packets that are destined for a
particular network. e.g. 192.168.5.0. How do I do this ? Is there a concept
of 'nul' interface in Windows (like certain routers) that can be used for
such a purpose ?

Any help will be much appreciated.

Regards,
 
D

Doug Sherman [MVP]

Well:

route -p add 192.168.5.0 mask 255.255.255.0 192.168.1.x

Where x = a nonexistent or otherwise incorrect router. This prevents
delivery of packets destined for 192.168.5.0 - maybe not quite the same
thing as dropping packets.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top