bin/54692: ipfw <file> doesn't parse pipes correctly

Chris Knight chris at e-easy.com.au
Mon Jul 21 01:50:17 PDT 2003


>Number:         54692
>Category:       bin
>Synopsis:       ipfw <file> 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 at 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:


More information about the freebsd-bugs mailing list