From owner-freebsd-questions Wed Sep 20 12: 9:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 94DEE37B423 for ; Wed, 20 Sep 2000 12:09:40 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 20 Sep 2000 12:08:30 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e8KJ9Rd22934; Wed, 20 Sep 2000 12:09:27 -0700 (PDT) (envelope-from cjc) Date: Wed, 20 Sep 2000 12:09:22 -0700 From: "Crist J . Clark" To: Chip Cc: "seafug@dub.net" , "freebsd-questions@freebsd.org" Subject: Re: natd does port forwarding? Message-ID: <20000920120922.C22272@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <39C6FCCC.D0103226@wiegand.org> <20000918225104.I367@149.211.6.64.reflexcom.com> <39C70308.EF52766F@wiegand.org> <20000919000233.L367@149.211.6.64.reflexcom.com> <39C84A4B.766B5B24@wiegand.org> <20000919232213.Q367@149.211.6.64.reflexcom.com> <39C8C32C.647A7216@wiegand.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39C8C32C.647A7216@wiegand.org>; from chip@wiegand.org on Wed, Sep 20, 2000 at 07:01:16AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 20, 2000 at 07:01:16AM -0700, Chip wrote: > "Crist J . Clark" wrote: > > On Tue, Sep 19, 2000 at 10:25:31PM -0700, Chip wrote: > > > According to top natd is running, in fact, after a reboot it > > > showed two instances of it running. I have attached my rc.conf, > > > rc.firewall, and natd.conf in the hopes that someone can tell > > > me where I have gone wrong, because port forwarding is not > > > working. > > > > OK, I made some observations. What version of FreeBSD are you using, > > BTW? > FreeBSD 4.0 > the one on the Cheapbytes cd, I don't know if its -release or > what. I would assume so. [snip] > > > rc.conf -- [snip] > > > gateway_enable="YES" > > > router_enable="YES" > > > > Remove this. It is not needed. > > > > > defaultrouter="208.194.173.1" > > > natd_enable="YES" > > > natd_interface="ep1" > > > > You forgot, > > > > natd_flags="-f /etc/natd.conf" > > > Okay, I've added that line and commented out the other two. Just > out > of curiousity, I thought those were necessary, I have a 7 pc > network > here at home. Oops. I guess I was not too clear. One _is_ necessary, one is not. Specifically, gateway_enable="YES" #router_enable="YES" You don't need routed(8). My comment above was only directed at the previous line, not at the two previous lines. Sorry. [snip] > Once again, the new versions are attached. Could the problem be > at > the web server? I can connect to via its ip address from anywhere > inside the network and it will return the proper web page, so I > am > assuming that means it will work. > It has the outside nic, 208.194.173.26, as a gateway. Anything > else > need to be specified on the server network settings to get this > to > work at it's end? You can just turn on the IP fowarding on the running system by doing, # sysctl -w net.inet.ip.forwarding=1 Rather than rebooting to get the effect of the 'gateway_enable' change. Now does the NAT work? If not, send the output of 'ipfw show' to make sure that there is not something weird going on when your rules get loaded. Do you still get two natd(8) when you startup? Are you trying to start natd from /etc/rc.local or /usr/local/etc/rc.d too? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message