From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 21 01:50:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FA2437B401 for ; Mon, 21 Jul 2003 01:50:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5740B43FAF for ; Mon, 21 Jul 2003 01:50:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6L8oGUp050085 for ; Mon, 21 Jul 2003 01:50:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6L8oG1g050081; Mon, 21 Jul 2003 01:50:16 -0700 (PDT) Resent-Date: Mon, 21 Jul 2003 01:50:16 -0700 (PDT) Resent-Message-Id: <200307210850.h6L8oG1g050081@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Knight Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A31537B401 for ; Mon, 21 Jul 2003 01:44:53 -0700 (PDT) Received: from postoffice.e-easy.com.au (eth0.lnk.e-easy.com.au [203.31.73.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614D743FDD for ; Mon, 21 Jul 2003 01:44:51 -0700 (PDT) (envelope-from chris@e-easy.com.au) Received: from ait0fd01.aims.private (ait0fd01.aims.private [192.168.10.254]) by postoffice.e-easy.com.au with ESMTP id h6L8ijgE097433; Mon, 21 Jul 2003 18:44:45 +1000 (EST) (envelope-from chris@e-easy.com.au) Received: from ait0fd01.aims.private (localhost [127.0.0.1]) by ait0fd01.aims.private (8.12.9/8.12.9) with ESMTP id h6L8ihw6015787; Mon, 21 Jul 2003 18:44:43 +1000 (EST) (envelope-from chris@e-easy.com.au) Received: (from root@localhost) by ait0fd01.aims.private (8.12.9/8.12.9/Submit) id h6L7PHb8015614; Mon, 21 Jul 2003 17:25:17 +1000 (EST) Message-Id: <200307210725.h6L7PHb8015614@ait0fd01.aims.private> Date: Mon, 21 Jul 2003 17:25:17 +1000 (EST) From: Chris Knight To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: chris@e-easy.com.au Subject: bin/54692: ipfw doesn't parse pipes correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Chris Knight List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 08:50:17 -0000 >Number: 54692 >Category: bin >Synopsis: ipfw doesn't parse pipes correctly >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 21 01:50:08 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.8-STABLE i386 >Organization: E-Easy >Environment: System: FreeBSD ait0fd01.aims.private 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Jul 21 15:59:47 EST 2003 root@ait0fd01.aims.private:/var/obj/usr/src/sys/THINKPAD i386 >Description: Passing a file to ipfw results in incorrect parsing of lines dealing with traffic shaping. >How-To-Repeat: In /etc/make.conf: IPFW2=true Using ipfw2.c 1.4.2.16 The following in /etc/firewall.conf: === -f flush pipe 1 config bw 3KByte/s delay 125 mask all add pipe 1 tcp from 192.168.10.254 80 to any add pipe 1 tcp from any to 192.168.10.254 80 add pass all from any to any via lo0 add deny all from any to 127.0.0.0/8 add deny all from 127.0.0.0/8 to any add pass all from any to any === The following command results in the following error: # ipfw /etc/firewall.conf Flushed all rules. Line 3: bad command `pipe' However, the following works correctly: # ipfw add pipe 1 tcp from 192.168.10.254 80 to any >Fix: Haven't worked it out yet. >Release-Note: >Audit-Trail: >Unformatted: