On Tue, Nov 18, 2003 at 12:02:23PM +0530, Ram Chandar wrote: > On Monday 17 November 2003 15:19, Guido van Rooij wrote: > > ICMP error responses to a connection in the state table _are_ passed > > by the state code. See function fr_checkicmpmatchingstate() in ip_state.c > > Again here is the log entry > > 08/11/2003 10:34:22.572709 ppp0 @0:2 p 203.63.113.66 -> 61.11.249.5 PR icmp > len 20 56 icmp unreach/admin_prohibit for 61.11.249.5,65438 - 210.8.100.52,80 > PR tcp len 20 60 IN > > I was having an entry in ipf.conf as > > pass out on ext_iface from any to any keep state keep frags > > The above packet occured as a as result of my TCP SYN packet to > 210.8.100.52,80. > > If the state code had intercepted it, it would never have encountered the > firewall code and caused the log entry. > > Or is it because the state code would only catch an ICMP related to a > connection only after the connection has been recoginsed as "ESTABLISHED" > rather than "SYN_SENT"
No, that does not matter. Apparently there is a bug in the current code, or we are overlooking somthing here. If you can reproduce the above, please send the output of tcpdump -nx of a session that exibits this behaviour. I'll try looking into this as soon as I can but due to familiy circumstances, don't hold your breath. -Guido
