Re: Blocking incoming IP address immediately

From: Cameron L. Spitzer (spambait_at_merde.greens.org)
Date: 11/29/04


Date: 29 Nov 2004 22:04:11 GMT

In article <slrncqmhtv.u14.news@cannabis.beginnerslinux.org>, repo wrote:
>
> you can use the route command
> /sbin/route add -host $TARGET$ reject

Huh? man route:

SYNOPSIS
       route [-v] [-A family] add [-net|-host] target [netmask Nm] [gw Gw]
              [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn]
              [reinstate] [[dev] If]

OPTIONS
       reject install a blocking route, which will force a route lookup to
              fail. This is for example used to mask out networks before
              using the default route. This is NOT for firewalling.

EXAMPLES
       route add -net 10.0.0.0 netmask 255.0.0.0 reject
              This installs a rejecting route for the private network
              "10.x.x.x."

I don't think a reject route does what you want here.

Cameron



Relevant Pages

  • Re: SUSE 10 noob network problem
    ... Okay, routing issue. ... Huh? ... What does route -n say? ... Ruurd ...
    (alt.os.linux.suse)
  • Re: Recruitment Policy
    ... Small world, huh? ... Cypher, you do something like that again at 9am Tuesday morning, and we'll ... A bit Route One, but it'll do. ...
    (uk.sport.football)
  • Re: Wireless AND ethernet to same router
    ... how are the Metrics fixed? ... Metrics are set by the ROUTE command. ... METRIC value with the route command and force the traffic to go via ... METRIC is totally hardware specific. ...
    (alt.internet.wireless)
  • Re: Linux Routing Woes
    ... >The following routing table is from my Solaris box: ... It keeps placing 0.0.0.0 for the host route: ... With this route table the Linux box will route all 172.16.24.0 ... the host route command was used above, ...
    (comp.os.linux.networking)
  • Re: need help with route command
    ... A route command specifies ... If you are using the Microsoft VPN client, ... > ISP to my linksys wrv54G) and want to route PARTIAL web and POP/SMTP ... > VPN tunnel to my home, then to the Internet from the home connection. ...
    (microsoft.public.win2000.ras_routing)

Quantcast