On Tue, Nov 25, 2003 at 12:03:08AM -0800, Phil Dibowitz wrote:Guido van Rooij wrote:No. A correct TCP implementation should ignore ICMP errors once a session is active. In case an ICMP error is sent in response to a sync, some implementation actually process the icmp if it were an RST IIRC.
Huh? If the first few packets are very samll, and then a large one, you might get an ICMP 3/4 which will instruct the stack to send smaller packages. This can't be ignored, it'd break TCP/IP.
I was talking about packets that could end a session. Indeed, the wording I used was bad. Cant fragment errors will of course be processed.
I remember discovering, on one particular platform (I *think* it was SunOS 4.1.3_U1), that ICMP port unreachables generated (by IP Filter using return-icmp) for an established TCP connection would not only reset the TCP connection in question, but also blow away all other TCP connections to the same host. This taught me to be careful about what arguments I stuck into a return-icmp rule, and to be careful to use return-rst for TCP. The behavior of TCP in response to various ICMP message types is something I think is perhaps more variable than theory would predict, and may vary significantly from platform to platform.
Where I'm going with this is that it might be nice to have a choice of using keep state with limitations on specific classes of "related" packets passed implicitly. You've sort of got that in this case without the patch, since you can always let in the ICMP explicitly as part of your ruleset. Once it becomes implicit with state, there's no method for controlling it in the current semantics.
-- Jefferson Ogata <[EMAIL PROTECTED]> NOAA Computer Incident Response Team (N-CIRT) <[EMAIL PROTECTED]>
