* Is "no route to host" fake possible?
@ 2004-06-25 8:53 iptables-ml
2004-06-25 9:15 ` Antony Stone
2004-06-25 9:24 ` Patrick Leslie Polzer
0 siblings, 2 replies; 4+ messages in thread
From: iptables-ml @ 2004-06-25 8:53 UTC (permalink / raw)
To: netfilter
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
--
xy1.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is "no route to host" fake possible?
2004-06-25 8:53 Is "no route to host" fake possible? iptables-ml
@ 2004-06-25 9:15 ` Antony Stone
2004-06-25 9:24 ` Patrick Leslie Polzer
1 sibling, 0 replies; 4+ messages in thread
From: Antony Stone @ 2004-06-25 9:15 UTC (permalink / raw)
To: netfilter
On Friday 25 June 2004 9:53 am, iptables-ml@xy1.org 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.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is "no route to host" fake possible?
2004-06-25 8:53 Is "no route to host" fake possible? iptables-ml
2004-06-25 9:15 ` Antony Stone
@ 2004-06-25 9:24 ` Patrick Leslie Polzer
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Leslie Polzer @ 2004-06-25 9:24 UTC (permalink / raw)
To: netfilter
On Fri, 25 Jun 2004 10:53:36 +0200
iptables-ml@xy1.org 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is "no route to host" fake possible?
2004-06-25 10:44 Cilliè Burger
@ 2004-06-25 11:19 ` Antony Stone
0 siblings, 0 replies; 4+ messages in thread
From: Antony Stone @ 2004-06-25 11:19 UTC (permalink / raw)
To: netfilter
On Friday 25 June 2004 11:44 am, Cilliè Burger 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
> >lke to know it it's possible?
> yes, it is
>
> # man route
>
> 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.
>
> route add -host 192.168.1.2 reject
>
> # ping 192.168.1.2
> connect: Network is unreachable
>
> for more info check the route man page
This is fine, so long as you want to return this message for *all* packets
addressed to the host. Doing it with netfilter has the advantage that you
can specify selected sources for this reject to be returned to.
The target:
-j REJECT --reject-with icmp-net-unreachable
should result in the same response as shown above.
Regards,
Antony.
--
GIT/E d- s+:--(-) a+ C++++$(---) UL++++$ P+(---)>++ L+++(++++)$ !E W(-) N(-)
o? w--(---) O !M V+++(--) !PS !PE Y+ PGP+> t- !tv@ b+++ DI++ D--- e+++(*) h++
5? !X- !R K--? G-
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-25 11:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-25 8:53 Is "no route to host" fake possible? iptables-ml
2004-06-25 9:15 ` Antony Stone
2004-06-25 9:24 ` Patrick Leslie Polzer
-- strict thread matches above, loose matches on Subject: below --
2004-06-25 10:44 Cilliè Burger
2004-06-25 11:19 ` Is " Antony Stone
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.