From owner-freebsd-questions Sat Jan 5 9:59:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 1B43A37B417 for ; Sat, 5 Jan 2002 09:59:27 -0800 (PST) Received: from user-33qtmda.dialup.mindspring.com ([199.174.217.170] helo=gohan.cjclark.org) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Mv6J-0003ed-00; Sat, 05 Jan 2002 09:59:24 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id g04MKqn01228; Fri, 4 Jan 2002 14:20:52 -0800 (PST) (envelope-from cjc) Date: Fri, 4 Jan 2002 14:20:51 -0800 From: "Crist J. Clark" To: Dean Hollister Cc: questions@freebsd.org Subject: Re: ipfw question Message-ID: <20020104142051.A1205@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020103184834.R61032-100000@odyssey.apana.org.au> <20020103184834.R61032-100000@odyssey.apana.org.au> <20020103143914.D236@gohan.cjclark.org> <5.1.0.14.2.20020104083511.00ba2270@Pop3.norton.antivirus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20020104083511.00ba2270@Pop3.norton.antivirus>; from dean@odyssey.apana.org.au on Fri, Jan 04, 2002 at 08:37:35AM +0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 04, 2002 at 08:37:35AM +0800, Dean Hollister wrote: [snip] > It was only an example. In the case of > > ipfw add 90 fwd 1.1.1.1,100 tcp from 2.2.2.2 to any 100 out > > Would this work? I wouldn't bother writing that first ",100" since it is meaningless, but that should work. > It doesn't appear to when I added the rule and tested it. Run tcpdump(1) on the interface 1.1.1.1 is attached to and watch for the traffic, # tcpdump -i -n 'src host 2.2.2.2 && dst port 100' -- "It's always funny until someone gets hurt. Then it's hilarious." Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message