Questions on IPFW???

Hakim Z. Singhji hakim.singhji at earthlink.net
Tue Aug 3 10:40:30 PDT 2004


Thanks buddy...I appreciate it.

-----Original Message-----
From: Chuck Swiger <cswiger at mac.com>
Sent: Aug 3, 2004 1:11 PM
To: "Hakim Z. Singhji" <hakim.singhji at earthlink.net>, 
	freebsd Questions <freebsd-questions at 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





More information about the freebsd-questions mailing list