From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (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 216F03B2A0 for ; Sat, 26 Mar 2016 18:14:32 -0400 (EDT) Received: by mail-lb0-x234.google.com with SMTP id vo2so11422511lbb.1 for ; Sat, 26 Mar 2016 15:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NghfxW+RfwPLs3nA6rbn//MIm+ZfyhYJsLzQ07qfpYg=; b=06/khqtCukDAPxJnuNCR9WONl9R4+LG6O0B2cv3uvY2RJbayPNOiWyXRKjISg6nRs7 uT/0RdYjIwASP6FJ/m9TUGTXYwoWkUVzUiuwrezYxlpJSLY481rQiLsEOzdVnv8vIceq /FvyC6wQxAuJt4PtuCm3Hh/n5pN2RDziWT+jt82KAX263cDOhqpimnR+tkYasKqTUPu3 MebzIkC9ih5aYXV0Bb+87du0klCSbF7VsrEtwQGatS7J1XcMa8s2hT5CVnCIGnc2HtJX OIqLubCH9MxXLA/Ct0t9SSyxXt1t9NFT+15UIDuVHEJBvkXOuqzhv16ngByMIIkFHxXg XEaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NghfxW+RfwPLs3nA6rbn//MIm+ZfyhYJsLzQ07qfpYg=; b=SwhoZTykNDGHBbHox3sRzM04FmYDzZMxRkYsaPea03Kn3hfVOeuiA9ND2N+fguwZPl TtBh0nFsOiqvQKkl4kjctYg5bK1reQ4Q9RDIVHj+6GMAG6mn919qDNCVEP+T+6NeWynD 9zP4A8ICnpw/BKcKpWqOyK34BZ7pcxQgsAvuuUd8krI2e+dqI0KFY5SjEP71bQFE6fzh CXvsuu2BwFLnL8rnyPeA1di4FXGtN8sZPRP0ntH0aDZ/t0o0gQIgcA/qpaEJTSbbS7HV MQKiwwu6cdQ1Jw3lOVBcc+XLJNOGJb+nsiNxivNnYUCUbNUEEtWlLOU8hiaAL8Ww8uKj 0Eqw== X-Gm-Message-State: AD7BkJK086eyhF9/uAD6TVAMV6OgHJwWbOlMNrjt2TujTngdZsWN/Y1203d7ff3qagKwgg== X-Received: by 10.112.171.33 with SMTP id ar1mr3496656lbc.54.1459030470932; Sat, 26 Mar 2016 15:14:30 -0700 (PDT) Received: from bass.home.chromatix.fi (37-33-67-252.bb.dnainternet.fi. [37.33.67.252]) by smtp.gmail.com with ESMTPSA id w6sm3047733lbo.31.2016.03.26.15.14.29 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Mar 2016 15:14:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) From: Jonathan Morton In-Reply-To: Date: Sun, 27 Mar 2016 00:14:27 +0200 Cc: cake@lists.bufferbloat.net Content-Transfer-Encoding: quoted-printable Message-Id: <34953EAA-4C76-456E-9B9E-3A73D0DACCDE@gmail.com> References: To: Allan Pinto X-Mailer: Apple Mail (2.3112) Subject: Re: [Cake] cake separate qos for lan 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: Sat, 26 Mar 2016 22:14:32 -0000 > On 26 Mar, 2016, at 17:14, Allan Pinto wrote: >=20 > I'm experimenting in replacing a mikrotik router with plain linux. by = following the instructions on the cake page, i have setup the following = line in the /etc/ppp/ip-ip script so that the user will be limited to = bandwidth using cake. >=20 > /usr/sbin/tc qdisc add dev $pppdev root cake bandwidth = ${BURST_DOWN}bit >=20 > but i have certain lan traffic available to the customer which should = be available at higher speed, for eg. cache traffic and i want to set = that speed to 20mbit default . >=20 > if i understand correctly i will have to mark traffic coming in from = that lan source using iptables, can someone guide me how to set = bandwidth only for that source to be higher. I=E2=80=99m not certain what your topology is here. Is the cache inside = or outside the point where the router is fitted, or is it within the = router, or off to the side on a separate port? Also, the command shown will apply a limit to *egress* traffic on the = given port. If you need to do *ingress* shaping, there=E2=80=99s a = different sequence of commands. - Jonathan Morton