Date: Wed, 20 Sep 2000 12:09:22 -0700 From: "Crist J . Clark" <cjclark@reflexnet.net> To: Chip <chip@wiegand.org> Cc: "seafug@dub.net" <seafug@dub.net>, "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG> Subject: Re: natd does port forwarding? Message-ID: <20000920120922.C22272@149.211.6.64.reflexcom.com> In-Reply-To: <39C8C32C.647A7216@wiegand.org>; from chip@wiegand.org on Wed, Sep 20, 2000 at 07:01:16AM -0700 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000920120922.C22272>