From owner-freebsd-net@FreeBSD.ORG Sun Jun 25 05:58:55 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 0E9C016A47C for ; Sun, 25 Jun 2006 05:58:55 +0000 (UTC) (envelope-from cybercorecentre@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A27743D64 for ; Sun, 25 Jun 2006 05:58:51 +0000 (GMT) (envelope-from cybercorecentre@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so478463uge for ; Sat, 24 Jun 2006 22:58:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Ur9Fcz/BVPIwW3ju42BGMuqFX6Ls6/nWp/jiqFQb5M7WQAr1/444Hc7IKjzFLxWSOQBODClhRa0yRzTYv4L9M+n2D9JteWq2KeaEPcR9f3YLoGEIGreLRu68IXBxKUKTF9eOJJ2ImVTSQfglGwzFqZjj8Br5HGbfIb8scH713sU= Received: by 10.67.28.9 with SMTP id f9mr3811368ugj; Sat, 24 Jun 2006 22:58:50 -0700 (PDT) Received: from ?192.0.0.1? ( [62.77.228.138]) by mx.gmail.com with ESMTP id k1sm2516809ugf.2006.06.24.22.58.50; Sat, 24 Jun 2006 22:58:50 -0700 (PDT) Message-ID: <449E256C.4080203@gmail.com> Date: Sun, 25 Jun 2006 07:55:56 +0200 From: Jax User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Traffic shaping part 2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 05:58:55 -0000 Hello Guys! I decided between freebsd. Anyone can give me a real life example, full ipfw traffic shaping ruleset or something like that. I written one myself but I hardly can find even examples on the net so pls some1 send me to private if it's possible. I don't want to share bandwith among hosts, I only want to define 4-5 class of flow for example 1 for ssh, telnet etc. delay sensitive traffic, 1 for heavy ftp and P2P traffic ( and this is another part when i lacked, I haven't got any idea how could I manage the passive ftp sessions or bittorrent traffic with ipfw). In few words what I did: ipfw pipe 1 config bw 50Kbit/s queue 30 ipfw pipe 6 config bw 300Kbit/s queue 40 .... $cmd 200 pipe 1 tcp from any to any 22 in via $LANINT keep-state $cmd 30000 pipe 1 tcp from any to any 22,24,25,110,389,993,995 out via $LANINT $cmd 60000 pipe 6 ip from any to any out ... And stuff like this. I know it's not the best, because i statically attach 1 kind of traffic to a pipe, but this way file transfer don't disturb down ssh traffic as far as i know, but as i told you i'm new in this topic. Any help appreciated! Regards, Jax