Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2002 14:20:51 -0800
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Cc:        questions@freebsd.org
Subject:   Re: ipfw question
Message-ID:  <20020104142051.A1205@gohan.cjclark.org>
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 %2B0800
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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<interface> -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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104142051.A1205>