From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [PATCH] pkt_sched: act_xt support new Xtables interface Date: Thu, 20 Dec 2012 07:35:09 -0500 Message-ID: <50D305FD.7000901@mojatatu.com> References: <50C4821D.5090206@gmail.com> <50C9B4BB.9060609@mojatatu.com> <50CCE961.5050204@mojatatu.com> <50CDFB6A.3090806@mojatatu.com> <50CE1A04.1000405@mojatatu.com> <50CE3203.9080007@mojatatu.com> <50CF1071.1050405@mojatatu.com> <50D06177.2090905@mojatatu.com> <50D1A8A7.1090002@mojatatu.com> <50D1AB7E.5060000@mojatatu.com> <50D2D229.6040802@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Hasan Chowdhury , Stephen Hemminger , Jan Engelhardt , "netdev@vger.kernel.org" , pablo@netfilter.org, netfilter-devel@vger.kernel.org To: Yury Stankevich Return-path: Received: from mail-ia0-f181.google.com ([209.85.210.181]:52071 "EHLO mail-ia0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602Ab2LTMfV (ORCPT ); Thu, 20 Dec 2012 07:35:21 -0500 Received: by mail-ia0-f181.google.com with SMTP id s32so2742905iak.40 for ; Thu, 20 Dec 2012 04:35:20 -0800 (PST) In-Reply-To: <50D2D229.6040802@gmail.com> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Could be your setup. I didnt do a lot of testing but from my notes (running different kernel at the moment): #try to point to everything (no iptables setup) tc filter add dev eth0 parent ffff: protocol ip u32 match u32 0 0 flowi= d=20 23:23 action xt -j CONNMARK --restore-mark #let it run for a 1 sec then display with tc -s filter show dev eth0 parent ffff: ---- filter protocol ip pref 49152 u32 filter protocol ip pref 49152 u32 fh 800: ht divisor 1 filter protocol ip pref 49152 u32 fh 800::800 order 2048 key ht 800 bkt= =20 0 flowid 23:23 match 00000000/00000000 at 0 action order 1: tablename: mangle hook: NF_IP_PRE_ROUTING target CONNMARK restore index 1 ref 1 bind 1 installed 3 sec used 1 sec Action statistics: Sent 280 bytes 4 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 ---- cheers, jamal On 12-12-20 03:54 AM, Yury Stankevich wrote: > 19.12.2012 15:56, Jamal Hadi Salim =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> Hasan/Yury, if you test this please use the latest iproute2 with onl= y >> the first patch I posted (originally from Hasan). Hasan please use t= hat >> patch not your version - if theres anything wrong we can find out so= oner >> before the patch becomes final. > > Hello, > 3.7.1 kernel with 3.7.0 iproute, > patch-xt, xt-p1 + linkage fix was applyed > command successfully performed, but actually doesn't work. > > command: > tc filter add dev $dev parent ffff: protocol ip u32 match u32 0 0 \ > action xt -j CONNMARK --restore-mark \ > action mirred egress redirect dev ifb0 > then i use filter: > > tc filter add dev ifb0 protocol ip parent 1: prio 2 handle 0xa fw flo= wid > 1:102 > > iptables line: > iptable -t mangle -A POSTROUTING -p tcp --dport 80 -m connmark --mark= 0 > -m connbytes --connbytes 204800: --connbytes-dir both --connbytes-mod= e > bytes -j CONNMARK --set-mark 0xa > > once i run a test to download 300K file, > from iptables counters i can see that rule in POSTROUTING is triggere= d, > but from `tc -s qdisc show dev ifb0` i see that no packets was sent t= o > 1:102 flow. > > btw, > tc -p -s filter show dev ifb0 parent 1: > do not show stats `(rule hit 416 success 0)` for this (filter protoco= l > ip pref 2 fw handle 0xa classid 1:102) rule. > > > -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html