Networking Forums

Networking Forums > Computer Networking > Linux Networking > ICMP destination unreachable - communication filtered

Reply
Thread Tools Display Modes

ICMP destination unreachable - communication filtered

 
 
sweta
Guest
Posts: n/a

 
      09-12-2006, 10:22 AM
Hi All,
I need your help. I want to configure a gateway to generate ICMP
destination unreachable - communication filtered (code 13) for filtered
packets by it. Can it be done using iptables/ipchains? Can you please
tell me how to achieve this? In iptables, you can jump to REJECT and
use --reject-with option. But --reject-with option doesnt have this
code (13).
Any suggestions?
Thanks,
Sweta

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      09-12-2006, 10:40 AM
Hello,

sweta a écrit :
> I need your help. I want to configure a gateway to generate ICMP
> destination unreachable - communication filtered (code 13) for filtered
> packets by it. Can it be done using iptables/ipchains?


Yes.

> Can you please
> tell me how to achieve this? In iptables, you can jump to REJECT and
> use --reject-with option. But --reject-with option doesnt have this
> code (13).


You need iptables >= 1.2.9 and a Linux kernel >= 2.4.22.
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      09-12-2006, 04:07 PM
Pascal Hambourg wrote:
> Hello,
>
> sweta a écrit :
>> I need your help. I want to configure a gateway to generate ICMP
>> destination unreachable - communication filtered (code 13) for filtered
>> packets by it. Can it be done using iptables/ipchains?

>
> Yes.
>
>> Can you please
>> tell me how to achieve this? In iptables, you can jump to REJECT and
>> use --reject-with option. But --reject-with option doesnt have this
>> code (13).

>
> You need iptables >= 1.2.9 and a Linux kernel >= 2.4.22.


-REJECT --reject-with icmp-admin-prohibited

generates icmp type 3, code 13 (RFC 1812) if your kernel supports it.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista - Unable To Receive ICMP Destination Unreachable - P Tom Windows Networking 0 11-15-2008 05:06 PM
Destination Host Unreachable Phi Linux Networking 25 12-10-2007 07:16 PM
anybody knows how to disable outbound icmp destination unreachable message a10.part@gmail.com Linux Networking 4 11-13-2007 02:07 AM
Is it possible, bind has done but the OS still respond with ICMP destination unreachable Bin Chen Linux Networking 3 03-29-2007 12:11 PM
How to disable ICMP "Destination Unreachable" Konstantin Grudnev Linux Networking 4 03-22-2006 03:59 PM



1 2 3 4 5 6 7 8 9 10 11