Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2001 14:11:06 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Nick Rogness <nick@rogness.net>
Cc:        "Crist J . Clark" <cjc@FreeBSD.ORG>, Henry Su <henrysu@nttmcl.com>, freebsd-net@FreeBSD.ORG
Subject:   Re: Why is my ipfw(8) ``fwd'' rule to redirect a service to another machine not working?
Message-ID:  <Pine.BSF.4.21.0112281405080.94344-100000@InterJet.elischer.org>
In-Reply-To: <Pine.BSF.4.21.0112281553110.6468-100000@cody.jharris.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 28 Dec 2001, Nick Rogness wrote:

> On Fri, 28 Dec 2001, Julian Elischer wrote:
> 
> > Also, in versions of FreeBSD before 4.6, packets matched while
> > INCOMING could only be forwarded to the local host. Outgoing packets
> > could be forwarded to an adjoining host. This was fixed while 4.5 was
> > cooking and appeared in releases after that. The port number is only
> > used for forwarding to the local host.
> 
> 	Um, so you can now fwd based on incoming packets?  EX:
> 
> 	ipfw fwd 10.1.2.3 ip from any to 1.1.1.1 in via ed0

That will now work in -current and will in 4.x when I MFC it..
I looked in the man page and didn't see this mentionned I'l read it better
again and fix it if it's now Out of date.

Hmm I still can't find that example..
AHHHH found it....
will fix by removing 
"and the rule only applies to packets leaving the system"

is that what you are refering to?


> 
> 	Or is it still the way it is stated in the ipfw man page? EX:
> 
> 	ipfw fwd 10.1.2.3 ip from any to 1.1.1.1 out recv ed0 xmit xl0

That will still work...

> 
> 
> Nick Rogness <nick@rogness.net>
>  - Don't mind me...I'm just sniffing your packets
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0112281405080.94344-100000>