Date: Mon, 21 Jul 2003 17:25:17 +1000 (EST) From: Chris Knight <chris@e-easy.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Cc: chris@e-easy.com.au Subject: bin/54692: ipfw <file> doesn't parse pipes correctly Message-ID: <200307210725.h6L7PHb8015614@ait0fd01.aims.private> Resent-Message-ID: <200307210850.h6L8oG1g050081@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307210725.h6L7PHb8015614>