Skip to contentSkip to conversation

Is "no route to host" fake possible?

DISCUSSION [email protected] 3 participants 3 messages Jun 25, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I know the rules REJECT, DENY or DROP, but is it possible to return to the client the error message "no route to host" ?

I saw that it's possible to configure this on CISCO routers, and I would like to know it it's possible?

Best regards,
saf

Signature · 1 line
xy1.org
#1 lore raw
Quoted 4 lines · On Friday 25 June 2004 9:53 am, [email protected] wrote:

Hello,

I know the rules REJECT, DENY or DROP, but is it possible to return to the client the error message "no route to host" ?

iptables -A FORWARD etc -j REJECT --reject-with icmp-host-unreachable

If that's not the icmp error message you meant, try "man iptables" and look at the REJECT target for more ideas.

Regards,

Antony.

Signature · 5 lines
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.

                                                     Please reply to the list;
                                                           please don't CC me.
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Fri, 25 Jun 2004 10:53:36 +0200 [email protected] wrote:

Hello,

I know the rules REJECT, DENY or DROP, but is it possible to return to the client the error message "no route to host" ?

I saw that it's possible to configure this on CISCO routers, and I would like to know it it's possible?

Hmmm, if it's not possible with some patched kernel you can surely either

- write a module doing this (shouldn't be too hard)
- write a userspace daemon accepting those packets and crafting appropriate response packets

The last one might give a little bit of a speed penalty.

Regards,

Leslie