From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 79A8A3CB3E for ; Wed, 14 Feb 2018 04:14:27 -0500 (EST) Received: by mail-ot0-x233.google.com with SMTP id l5so19792642otj.11 for ; Wed, 14 Feb 2018 01:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=KR7EFCi5nlDS4tI4awedNLsou3Ws0cXPg2oKttZMvQQ=; b=NxopzaRD+Gum/eZeoc4Rob9objIrvOqmJ6+pWSaikc8reKH9A+rpOIEr0XP6SgrF2p 1+iBabq82Cxmp9gShSF42GnfenLPW/JMAweDPerqTVLthlxNvIZc2Mq4Qk6wpNysv2ZX vi9Nt20GcUZkvX4DIQvfuc66aLfwGEyu7U5s8CFqut2Nj24kkzAY6EpBJeXU+kG17Bak gGYLfkEtXrtjEfBs56lwffCEK7qU1qppxFJzQg0yLmK1/uPtnXLS2gC2hZMRDzeg/izl LwWaaQPWY9UWpU9hMkovfiqGoQlQnTAYbpvq24ZI7uoMweFzAtPR15MNDghspwF/qhZl LjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=KR7EFCi5nlDS4tI4awedNLsou3Ws0cXPg2oKttZMvQQ=; b=AAipATEZ2Nf9fpUozdGg8cSlzim8xeh6yzLvaeTJBbWBRpzC/um2eU6z7p5tIDAwHg XEkeKaIn+ie3zLzH7cxOcyOcENpVFvHo9DbsPH7o2fStfwtu3j7Cdl2k1vG1kY+IQLQ+ +EGBfStF3yQcLIWMqicXRWKYQ1dDHnMcMCVLSueaJis9fjTk1biVeYdqY+HJm9K4T/2h yZiyFH9b6rIlylelyCoHU4VLZatBZS2W7Srg9r+u8R+bBWdw/BpamX8dLlzRQS0y0yB8 6ReyH2sjOE4QhYpHz8/85Gu24z/ZYhnsORuk50xX4ZCsFZuJRYHPzHKCV0RYaeUeRYU+ l7xQ== X-Gm-Message-State: APf1xPAD89+g+/2rECKV2B64qk3IJmznLWJB+ji+nf+BLrisEIEs4qKA bOYrD9m0uKOvII0WAdVaGhLC8O3E X-Google-Smtp-Source: AH8x226hbxOsjRoARfEhrsYdN4Mb0cmiAjc5mfVpFXPcZTpvjJ3viANzKnH+Jwl4+2u6wJQNlPNgsA== X-Received: by 10.157.66.220 with SMTP id c28mr2744787otj.296.1518599666673; Wed, 14 Feb 2018 01:14:26 -0800 (PST) Received: from mail.outlook.com ([52.173.242.7]) by smtp.gmail.com with ESMTPSA id q62sm1828331oig.31.2018.02.14.01.14.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 01:14:26 -0800 (PST) Date: Wed, 14 Feb 2018 09:13:55 +0000 (UTC) From: Funshun Wang To: cake@lists.bufferbloat.net Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4029_507445860.1518599635904" X-Mailer: Outlook for iOS and Android Subject: [Cake] Using cake on IMQ interfaces: when to use the "nat" option? X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 09:14:27 -0000 ------=_Part_4029_507445860.1518599635904 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have redirected upload traffic to imq0 by using IMQ in the PREROUTING chain and download traffic in the POSTROUTING chain to imq1. Upload traffic --> -i br-lan+tun --> imq0 Download traffic --> -o br-lan+tun --> imq1 IMQ module is set to before NAT in PREROUTING and after NAT in POSTROUTING. So on which interface should I enable the "nat" option, imq0, imq1, both or none? Thanks. ------=_Part_4029_507445860.1518599635904 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
I have redirected upload traffic to imq0 by using IMQ in the PREROUTING chain and download traffic in the POSTROUTING chain to imq1.

Upload traffic --> -i br-lan+tun --> imq0
Download traffic --> -o br-lan+tun --> imq1

IMQ module is set to before NAT in PREROUTING and after NAT in POSTROUTING.

So on which interface should I enable the "nat" option, imq0, imq1, both or none?

Thanks.









------=_Part_4029_507445860.1518599635904--