Skip to contentSkip to conversation

avoid conntrack

DISCUSSION Clist 3 participants 3 messages Feb 20, 2006 – Mar 3, 2006

lore
Share & tools
lore

Clist

author
#0 lore raw

Hi list,

It is needed to do '-j NOTRACK' in order to avoid conntracking for some packets, or i can simply DROP packets on the raw table so they do not reach other netfilter tables and so it is not conntracking for those packets..?

Now and simply do
*raw
-A PREROUTING <some criteria> -j DROP

do i need to do
-A PREROUTING <some criteria> -j NOTRACK
-A PREROUTING <some criteria> -j DROP

Thanks...

Signature · 3 lines
---------------------------------------------
Clister UAH
---------------------------------------------
#1 lore raw
Quoted 3 lines · Clist

It is needed to do '-j NOTRACK' in order to avoid conntracking for some packets, or i can simply DROP packets on the raw table so they do not reach other netfilter tables and so it is not conntracking for those packets..?

Just drop them. The drop occurs immediately.

#2 lore raw
In reply to Clist
Quoted 13 lines · Clist

Hi list,

It is needed to do '-j NOTRACK' in order to avoid conntracking for some packets, or i can simply DROP packets on the raw table so they do not reach other netfilter tables and so it is not conntracking for those packets..?

Now and simply do
*raw
-A PREROUTING <some criteria> -j DROP

do i need to do

(quoted diff) +0 -2
-A PREROUTING <some criteria> -j NOTRACK
-A PREROUTING <some criteria> -j DROP
Quoted 2 lines

Thanks...

conntrack only keeps track of connections, it does absolutely nothing to your firewall rules, it's up to you to decide what to do with the connection states in your rules. At some point you have a rule that is similar to --state established,related -j ACCEPT, that's where you are allowing packets through because they are in conntrack, if you want to eliminate some packets regardless of state then just do so before you hit the rule.