[887] in linux-net channel archive
Reject routes
daemon@ATHENA.MIT.EDU (Stephen R. van den Berg)
Sat Aug 12 12:45:09 1995
From: srb@cuci.nl (Stephen R. van den Berg)
Date: Sat, 12 Aug 1995 14:33:44 +0200
To: linux-net@vger.rutgers.edu
What I have: a machine with several dial-up ppp connections.
The dialup connections have IP addresses like: 10.0.0.1, 10.0.0.2, etc.
Now, if a dialup connection is not active, there is no route for it
in the routing table, and in order to prevent IP packets destined for it
to take the default route, I added the following sink route in the
routing table:
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
10.0.0.0 * 255.0.0.0 U 1936 0 10290 lo
This works quite nice. If a ppp link comes up, it's route is added before
this route (obviously) and if the link disappears, this route will take
effect again and will sink all packets.
The only trouble is, it will sink the packets "silently". The only thing
that will happen is that after the TTL has run out, an ICMP time exceeded
is returned to the sender.
What I'd like, however, is an ICMP host unreachable or something similar.
Any clever tricks to get this behaviour in an 1.2.x kernel? Is it already
possible in a 1.3.x kernel?
Does it need to be patched?
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
Be braver. You cannot cross a chasm in two small jumps.