Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2001 21:04:02 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        Craig Tewksbury <ctewksb1@tampabay.rr.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ipfw and fwd
Message-ID:  <Pine.BSF.4.21.0104052100570.13888-100000@cody.jharris.com>
In-Reply-To: <001d01c0be16$7e009820$ca0aa8c0@tampabay.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Apr 2001, Craig Tewksbury wrote:

> I am using FreeBSD v3.2. I am using ipfw and natd. I would like to
> forward inbound ftp traffic to an internal server. I have tried ipfw
> fwd unsuccessfully.  The rule I tried:
> 
> ipfw add 200 fwd 192.168.4.2 tcp from any to <oip> ftp
> 
> Where 192.168.4.2 is the internal ftp server and <oip> represents the
> public address on my ipfw firewall.
> 
> Am I misunderstanding the function of fwd? I have not tried natd
> -redirect_port yet. Would this be a better option? fwd could be added
> or removed dynamically (preferred). Any suggestions are welcome.


	redirect_port is the way to go.  Use natd when you need the actual
	src,dst addresses to change (which is what you are trying to do).  
	ipfw fwd does not do such a thing.


Nick Rogness <nick@rogness.net>
 - Keep on Routing in a Free World...
 "FreeBSD: The Power to Serve!"


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?Pine.BSF.4.21.0104052100570.13888-100000>