From chris@e-easy.com.au  Mon Jul 21 01:44:53 2003
Return-Path: <chris@e-easy.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A31537B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <chris@e-easy.com.au>
Reply-To: Chris Knight <chris@e-easy.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc: chris@e-easy.com.au
Subject: ipfw <file> doesn't parse pipes correctly
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54692
>Category:       bin
>Synopsis:       ipfw <file> doesn't parse pipes correctly
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 01:50:08 PDT 2003
>Closed-Date:    Mon Jul 21 02:05:32 PDT 2003
>Last-Modified:  Mon Jul 21 02:05:32 PDT 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Mon Jul 21 02:04:05 PDT 2003 
State-Changed-Why:  
I believe this is a duplicate of bin/54649.  The later consists a patch 
that I am going to test and commit today. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54692 
>Unformatted:
