From owner-freebsd-questions Thu Oct 14 15: 6:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cask.force9.net (cask.force9.net [195.166.128.29]) by hub.freebsd.org (Postfix) with SMTP id 2FB7514BDC for ; Thu, 14 Oct 1999 15:06:12 -0700 (PDT) (envelope-from ric@sinclairassoc.force9.co.uk) Received: (qmail 3041 invoked from network); 14 Oct 1999 22:06:08 -0000 Received: from unknown (HELO sinclairassoc.force9.co.uk) (212.56.119.66) by cask.force9.net with SMTP; 14 Oct 1999 22:06:08 -0000 Message-ID: <380653D2.BF89D50F@sinclairassoc.force9.co.uk> Date: Thu, 14 Oct 1999 23:06:10 +0100 From: Richard Morte Organization: Sinclair Associates X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: "John E. Hein" Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: Problem Accessing Internet via FreeBSD Gateway References: <199910132231.XAA01836@hak.lan.Awfulhak.org> <38057269.A9E96405@sinclairassoc.force9.co.uk> <380622E3.7E23913A@sinclairassoc.force9.co.uk> <14342.13220.299479.657607@taz.timing.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "John E. Hein" wrote: > > Richard Morte wrote at 19:37 +0100 on Oct 14: > [snip] > > What I do not understand is that I have ``gateway_enable="YES"'' in my > > rc.conf file. It's been there from the date I started configuring > > FreeBSD as a gateway. > > > > I am beginning to wonder if some of the other settings are interfering > > with the gateway option. I have attached the (quite small) rc.conf file. > > If anyone can spot any obvious no-no's in the file, please let me know. > [snip] > > gateway_enable="Yes" > [snip] > > You had 'gateway_enable="Yes"' instead of 'gateway_enable="YES"'. > This is not a particularly user-friendly feature, but rc.network is case > sensitive for this variable (and others): > > if [ "X$gateway_enable" = X"YES" ]; then > echo -n ' IP gateway=YES' > sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 > fi > John, You are absolutely right. I can't believe the hours wasted through this one! Thank you for spotting it. Now I feel so stupid... but at least I can go to bed, safe in the knowledge that tomorrow the m/c will boot up and all will be well with the world. My appreciation once again to all concerned, Ric > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message