Networking Forums

Networking Forums > Computer Networking > Linux Networking > Which ICMP reject works best

Reply
Thread Tools Display Modes

Which ICMP reject works best

 
 
none
Guest
Posts: n/a

 
      02-20-2007, 12:29 AM
Given the various iptables icmp reject types, which is suppose to make
the calling host shut up and go away the fastest ?

It looks like it may be just doing a DROP and not wasting replying may be
the answer because most seem to ignore the reject messages and syn away...

Any experts with insight to this ?

Valid reject types:
icmp-net-unreachable ICMP network unreachable
net-unreach alias
icmp-host-unreachable ICMP host unreachable
host-unreach alias
icmp-proto-unreachable ICMP protocol unreachable
proto-unreach alias
icmp-port-unreachable ICMP port unreachable (default)
port-unreach alias
icmp-net-prohibited ICMP network prohibited
net-prohib alias
icmp-host-prohibited ICMP host prohibited
host-prohib alias
tcp-reset TCP RST packet
tcp-rst alias
icmp-admin-prohibited ICMP administratively prohibited (*)
admin-prohib alias
 
Reply With Quote
 
 
 
 
Andrzej Adam Filip
Guest
Posts: n/a

 
      02-20-2007, 05:32 AM
none <(E-Mail Removed)> writes:

> Given the various iptables icmp reject types, which is suppose to make
> the calling host shut up and go away the fastest ?
>
> It looks like it may be just doing a DROP and not wasting replying may be
> the answer because most seem to ignore the reject messages and syn away...
>
> Any experts with insight to this ?
>
> Valid reject types:
> icmp-net-unreachable ICMP network unreachable
> net-unreach alias
> icmp-host-unreachable ICMP host unreachable
> host-unreach alias
> icmp-proto-unreachable ICMP protocol unreachable
> proto-unreach alias
> icmp-port-unreachable ICMP port unreachable (default)
> port-unreach alias
> icmp-net-prohibited ICMP network prohibited
> net-prohib alias
> icmp-host-prohibited ICMP host prohibited
> host-prohib alias
> tcp-reset TCP RST packet
> tcp-rst alias
> icmp-admin-prohibited ICMP administratively prohibited (*)
> admin-prohib alias


Have you considered using tcp-reset?

--
[pl>en: Andrew] Andrzej Adam Filip : (E-Mail Removed) : (E-Mail Removed)
Home site: http://anfi.homeunix.net/
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      02-20-2007, 02:40 PM
Hello,

none a écrit :
> Given the various iptables icmp reject types, which is suppose to make
> the calling host shut up and go away the fastest ?
>
> Valid reject types:
> icmp-net-unreachable ICMP network unreachable
> icmp-host-unreachable ICMP host unreachable
> icmp-proto-unreachable ICMP protocol unreachable
> icmp-port-unreachable ICMP port unreachable (default)
> icmp-net-prohibited ICMP network prohibited
> icmp-host-prohibited ICMP host prohibited
> tcp-reset TCP RST packet
> icmp-admin-prohibited ICMP administratively prohibited (*)


- TCP RST for TCP packets.
- ICMP Port Unreachable for UDP packets and other supported
port-oriented protocols
- ICMP Protocol Unreachable for unsupported or non protocol-oriented
protocols
- ICMP Communication Administratively Prohibited is nice but I have
found that not all hosts understand it, which may reduce its efficiency.

Note : ICMP Network Prohibited and ICMP Host Prohibited are deprecated,
ICMP Communication Administratively Prohibited must be used instead.

(Source : RFC 1812)
 
Reply With Quote
 
none
Guest
Posts: n/a

 
      02-21-2007, 01:05 AM
On Tue, 20 Feb 2007 07:40:54 -0800, Pascal Hambourg wrote:

> Hello,
>
> none a écrit :
>> Given the various iptables icmp reject types, which is suppose to make
>> the calling host shut up and go away the fastest ?
>>
>> Valid reject types:
>> icmp-net-unreachable ICMP network unreachable
>> icmp-host-unreachable ICMP host unreachable
>> icmp-proto-unreachable ICMP protocol unreachable
>> icmp-port-unreachable ICMP port unreachable (default)
>> icmp-net-prohibited ICMP network prohibited
>> icmp-host-prohibited ICMP host prohibited
>> tcp-reset TCP RST packet
>> icmp-admin-prohibited ICMP administratively prohibited (*)

>
> - TCP RST for TCP packets.
> - ICMP Port Unreachable for UDP packets and other supported
> port-oriented protocols
> - ICMP Protocol Unreachable for unsupported or non protocol-oriented
> protocols
> - ICMP Communication Administratively Prohibited is nice but I have
> found that not all hosts understand it, which may reduce its efficiency.
>
> Note : ICMP Network Prohibited and ICMP Host Prohibited are deprecated,
> ICMP Communication Administratively Prohibited must be used instead.
>
> (Source : RFC 1812)


My simple testing today suggests using any kind of reject is a waste of
bandwidth for TCP, they will send at least 3 SYNs whether or not you
respond with a rejection so DROP becomes more bandwidth efficient.

thx
 
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
Anonymous Call Reject Joe Soap Broadband 55 01-17-2007 02:41 PM
netfilter -> do you DROP or REJECT ? daniel hagen Linux Networking 5 11-22-2004 05:24 PM
how to reject dns server? John Almberg Linux Networking 1 11-19-2004 02:16 PM
REJECT with tcp reset does not work Akop Pogosian Linux Networking 1 11-15-2003 11:34 AM
Iptables --reject-with tcp-reset David Linux Networking 0 08-22-2003 07:16 AM



1 2 3 4 5 6 7 8 9 10 11