All of lore.kernel.org
 help / color / mirror / Atom feed
* CLASSIFY target confusion
@ 2005-09-10 18:08 Deepak Seshadri
  2005-09-10 19:45 ` /dev/rob0
  2005-09-10 19:54 ` vinod_chandran
  0 siblings, 2 replies; 3+ messages in thread
From: Deepak Seshadri @ 2005-09-10 18:08 UTC (permalink / raw)
  To: netfilter

Hello everybody,
Here is a snippet from my script:

*mangle
-A POSTROUTING -o eth0 -s 10.0.2.0/24 -j router
-A router -j CLASSIFY --set-class 1:21
-A router -p tcp --dport 80 -m layer7 --l7proto exe -j CLASSIFY --set-class 
1:23
-A router -j ACCEPT

As you see above:
- All packets from 10.0.2.x will jump to the chain "router"
- Here it gets classified to TC's class 1:21
- But if the packet matches the layer-7 policy "exe", it will get classified 
to TC's class 1:23
- Accepted

What happens is:
Those packets that match the "exe" pattern does not get classified to 1:23. 
They still go through 1:21. I thought the packets matching the "exe" pattern 
will take the CLASSIFY target mentioned on the third line (1:23). Even 
though they match the third rule, they still retain the class 1:21. Could 
someone please help me here?

Through conntrack I verified that the connections are being detected by the 
exe pattern matching rule but that connection still flows through 1:21 
class.

Thank you,
Deepak 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-10 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-10 18:08 CLASSIFY target confusion Deepak Seshadri
2005-09-10 19:45 ` /dev/rob0
2005-09-10 19:54 ` vinod_chandran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.