From: "Tim Enos" Date: Thu, 30 Aug 2007 16:25:42 +0000 Subject: RE: [LARTC] Priotirize SSH Traffic Message-Id: <200708301626.l7UGQ5RK025746@ll.mit.edu> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org That script you included looks good, but it would be placed on eth1=20 (egress interface). The commands you included treats outbound, not=20 inbound traffic. Generally speaking it's best to mark traffic as close to the source as=20 Possible (e.g. as it enters a DS domain). Thinking only about SSH sessions initiated from his LAN, placing a=20 single 'ip tables' line on eth0 which (re)marks _incoming_ SSH traffic=20 would seem the way to go. _For_ _example_ _only_, you might remark SSH to have DSCP AF23, then have a= =20 simple prio map on the egress which places such traffic in the topmost=20 queue. > -----Original Message----- > From: lartc-bounces@mailman.ds9a.nl [mailto:lartc-bounces@mailman.ds9a.nl] > On Behalf Of Vincent Dautremont > Sent: Thursday, August 30, 2007 11:00 AM > To: lartc@mailman.ds9a.nl > Subject: Fwd: [LARTC] Priotirize SSH Traffic >=20 > oops, i forgot to reply to the list :-/ >=20 >=20 > D=E9but du message r=E9exp=E9di=E9 : >=20 >=20 > De : Vincent Dautremont > Date : 30 ao=FBt 2007 16:58:26 GMT+02:00 > =C0 : Ali Jawad > Objet : R=E9p : [LARTC] Priotirize SSH Traffic >=20 > try that > #tc qdisc add dev eth0 root handle1: prio > # tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip > dport 22 0xffff flowid 1:1 > # tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match u32 > 0 0 flowid 1:2 > 1st command create a queuing discipling with a priority queuing. > 2nd command, say to give first priority to packets that have > destination port number 22 (standard ssh port). > 3rd command, say to default traffic to have priority number 2. >=20 > you should just have to change eth0 if you are using another netword > device, but you should already know that. > Vincent. >=20 > Le 30 ao=FBt 07 =E0 16:45, Ali Jawad a =E9crit : >=20 >=20 > Hi All > I am currently learning traffic shapping and I need a script > that does prioritize SSH traffic on my debian router. >=20 > My Internet interface is eth1 > My Lan interface is eth0 >=20 > My Internet connection is 256 kbit/s down and 128 kbit per > second up. >=20 > I hope someone does have a well documented (or maybe not so > documented) example on which I can build further rules as needed. >=20 > Thx All. >=20 > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >=20 >=20 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc