• Main Menu
  • Null Route

    A null route is a route that goes to nowhere.

    The reason for creating a null route is to prevent your system from sending any data to a remote system.

    Creating a null route

    Null routes are usually created using the `route` command. This works under both Windows and Unix, although the syntax differs.

    The example shows the creation of a null route for an entire Class C network:

    # route add
    add net gateway

    We can see the route which this command created using the `netstat -nr` command:

    # netstat -nr
    Routing tables
    Destination Gateway Flags Refs Use Netif Expire
    193.252.19 UGS 0 0 fxp0

    The result of this command is that no matter what packets we receive from this network, we will never send any packets to this network in reply.

    Null routes are useful against spammers and other nasty folks on the Internet.

    Got Something To Say:

    Your email address will not be published. Required fields are marked *

    One comment
    1. manuela

      27 July, 2012 at 10:50 am

      This works under both Windows and Unix

    Network Layer
    177 queries in 0.588 seconds.