Skip to contentSkip to conversation

contrack and packets with error

DISCUSSION Diego Woitasen 2 participants 2 messages May 4, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Reading the conntrack code, i see that conntrack return NF_ACCEPT when a packet is erroneous (proto->error() returns -1), so the packet is ignored by conntrack but continues traversing the protocol stack.

The question is, why netfilter does not discard the packet?

regards,
diegows

#1 lore raw
Quoted 5 lines · Diego Woitasen

Reading the conntrack code, i see that conntrack return NF_ACCEPT when a packet is erroneous (proto->error() returns -1), so the packet is ignored by conntrack but continues traversing the protocol stack.

The question is, why netfilter does not discard the packet?

conntrack does tracking not filtering, packets are only dropped when it is necessary for accurate tracking. Otherwise the user can decide to drop the packet in his ruleset based on the information provided by conntrack.

Regards
Patrick