Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 13:40:28 -0400 (GMT-04:00)
From:      "Hakim Z. Singhji" <hakim.singhji@earthlink.net>
To:        Chuck Swiger <cswiger@mac.com>, freebsd Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Questions on IPFW???
Message-ID:  <9680698.1091554829100.JavaMail.root@waldorf.psp.pas.earthlink.net>

next in thread | raw e-mail | index | archive | help
Thanks buddy...I appreciate it.

-----Original Message-----
From: Chuck Swiger <cswiger@mac.com>
Sent: Aug 3, 2004 1:11 PM
To: "Hakim Z. Singhji" <hakim.singhji@earthlink.net>, 
	freebsd Questions <freebsd-questions@FreeBSD.ORG>
Subject: Re: Questions on IPFW???

Hakim Z. Singhji wrote:
> You answered my question, I wanted to know which was better to use with
> port forwarding (ipfw or natd) and based on what you wrote, natd is a
> better fit due to the fact that I would not have to force the other machine
> to accept packets redirected from the NAT box using natd.  Is that
> correct???

That's right.  Most people want to use NAT, because it lets you set up an 
internal network without having to specially configure the internal machines.

With regard to your other question, if you want an external connection to, 
say, port 22 to be forwarded to port 22 on some machine on your internal 
network, use:

redirect_port tcp 192.0.0.5:22 22

...in /etc/natd.conf or your natd_flags in /etc/rc.conf.

-- 
-Chuck





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