From owner-freebsd-net@FreeBSD.ORG Mon Jul 12 23:06:46 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D57C016A4CE for ; Mon, 12 Jul 2004 23:06:46 +0000 (GMT) Received: from ls413.htnet.hr (ls413.htnet.hr [195.29.150.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB09543D58 for ; Mon, 12 Jul 2004 23:06:45 +0000 (GMT) (envelope-from lycanthrope@post.htnet.hr) Received: from ls413.htnet.hr (localhost.localdomain [127.0.0.1]) by ls413.htnet.hr (0.0.0/8.12.10) with ESMTP id i6CN6imp025349 for ; Tue, 13 Jul 2004 01:06:44 +0200 Received: from jkhahhytncost7 (194-152-215-232.adsl.net.htnet.hr [194.152.215.232]) by ls413.htnet.hr (0.0.0/8.12.10) with SMTP id i6CN6ho1025345; Tue, 13 Jul 2004 01:06:43 +0200 Message-ID: <000d01c46864$ac9a7b00$1205a8c0@jkhahhytncost7> From: "lycanthrope" To: "Roman Kurakin" References: <001501c46826$ea0f1740$1205a8c0@jkhahhytncost7> <40F2B3D0.8090308@cronyx.ru> Date: Tue, 13 Jul 2004 01:05:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 X-Trace: ls413.htnet.hr 1089673604 993 194.152.215.232 (Tue, 13 Jul 2004 01:06:44 +0200) cc: freebsd-net@freebsd.org Subject: Re: QoS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 23:06:46 -0000 hello I made use of pipes,dummynet and queues. now,I would like someone to tell me how to improve my rules: I want priority like this: news&smtp, http, the rest can you tell me whether this rules are ok? what to improve, change? thank you! RULES: #ADSL is max 384/64 ipfw pipe 1 config bw 350kbits/s ipfw pipe 2 config bw 60kbits/s #news ipfw queue 1 config pipe 1 weight 15 #smtp ipfw queue 2 config pipe 1 weight 15 #http ipfw queue 3 config pipe 1 weight 8 #the rest ipfw queue 4 config pipe 1 weight 3 #OUTGOING traffic ipfw queue 5 config pipe 2 weight 15 ipfw queue 6 config pipe 2 weight 7 #outgoing ipfw add 10 queue 5 icmp from 192.168.2.0/24 to any out xmit via tun0 ipfw add 20 queue 6 ip from 192.168.2.0/24 to any out xmit via tun0 ipfw add 30 queue 5 icmp from 192.168.5.18/32 to any out xmit via tun0 ipfw add 40 queue 6 ip from 192.168.5.18/32 to any out xmit via tun0 #incoming to 2.0 subnet (one NIC) ipfw add 100 queue 1 ip from any to 192.168.2.0/24 119 in via tun0 ipfw add 110 queue 2 ip from any to 192.168.2.0/24 25 in via tun0 ipfw add 120 queue 3 ip from any to 192.168.2.0/24 80 in via tun0 ipfw add 130 queue 4 ip from any to 192.168.2.0/24 in via tun0 #incoming to only one machine on another subnet (other NIC) ipfw add 200 queue 1 ip from any to 192.168.5.18/32 119 in via tun0 ipfw add 210 queue 2 ip from any to 192.168.5.18/32 25 in via tun0 ipfw add 220 queue 3 ip from any to 192.168.5.18/32 80 in via tun0 ipfw add 230 queue 4 ip from any to 192.168.5.18/32 in via tun0 ----- Original Message ----- From: "Roman Kurakin" To: "lycanthrope" Cc: Sent: Monday, July 12, 2004 5:52 PM Subject: Re: QoS > Hi, > > man ipfw > I think pipes is what you need.