Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2001 11:35:12 -0700 (PDT)
From:      Tim Erlin <tperlin@yahoo.com>
To:        Nick Rogness <nick@rogness.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ipfw  -- fwd, divert, natd -redirect_port?
Message-ID:  <20010625183512.91569.qmail@web11706.mail.yahoo.com>
In-Reply-To: <Pine.BSF.4.21.0106251446260.42332-100000@cody.jharris.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, very helpful.

So is there a distinction between adding a divert
statement to my ipfw config and adding a
-redirect_port statement to my natd config file? 

--Tim
--- Nick Rogness <nick@rogness.net> wrote:
> On Mon, 25 Jun 2001, Tim Erlin wrote:
> 
> > I currently have 4.3-STABLE running NAT on my
> DSL(static ip). I'd like
> > to put a webserver (or any other service) behind
> it and map the
> > incoming port appropriately. I see three choices
> with ipfw and I'm not
> > sure what the differences are.
> > 
> 
> 	Well, there's only 2  natd and divert are the same.
>  Besides, you
> 	need to use nat for this.
> 
> > How does fwd differ from divert differ from
> running natd with
> > -redirect_port?
> 
> 	natd must be run in conjunction with divert (That
> is how the natd
> 	daemon receives packets from the kernel).  Like so:
> 
> 		ipfw divert natd ip from any to any via xl0
> 
> 	fwd is an ipfw firewall rule extention, like so:
> 
> 		ipfw fwd 10.0.0.1 ip from any to any out via xl0
> 
> Nick Rogness <nick@rogness.net>
>  - Keep on Routing in a Free World...
>   "FreeBSD: The Power to Serve!"
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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?20010625183512.91569.qmail>