Home All Groups Group Topic Archive Search About

How to drop packets in Windows XP ?

Author
13 Oct 2006 7:35 AM
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,

Author
13 Oct 2006 3:23 PM
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

Show quoteHide quote
"Wizzo" <sat***@joshi.net.in> wrote in message
news:eeQh3op7GHA.4568@TK2MSFTNGP02.phx.gbl...
> 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,
>
>