From owner-freebsd-questions Thu Oct 14 11:37:36 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 6F10714DB0 for ; Thu, 14 Oct 1999 11:37:28 -0700 (PDT) (envelope-from ric@sinclairassoc.force9.co.uk) Received: (qmail 7085 invoked from network); 14 Oct 1999 18:37:25 -0000 Received: from unknown (HELO sinclairassoc.force9.co.uk) (212.56.110.44) by cask.force9.net with SMTP; 14 Oct 1999 18:37:25 -0000 Message-ID: <380622E3.7E23913A@sinclairassoc.force9.co.uk> Date: Thu, 14 Oct 1999 19:37:23 +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: Brian Somers 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> Content-Type: multipart/mixed; boundary="------------86F7417D351961545424D578" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------86F7417D351961545424D578 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Brian, Yes, you provided me with just enough clues to track down the problem. Since posting a reply earlier this morning I have been able to sit down once again this evening and look at the: net.inet.ip.forwarding: 0 response I obtained. Looking at the docs once again I realise that ip forwarding should be set=1 by the: gateway_enable="YES" flag in /etc/rc.conf and that this is picked up at boot time. I discovered a mailing just today from Marcel Moolenar where he gives: sysctl -w net.inet.ipforwarding=1 I tried this and everything now appears to work OK. I can ping, traceroute, receive web content from the windows clients. I cannot tell you how happy I am to get this working. 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. Can I thank you Brian, Marcel, Matthias Teege, Todd Backman, Jason Wells, Steve Doty, Jeroen Ruigrok, Doug@gorean.org (and anyone else I've not included in the list) for sticking by this one and helping a newcomer out. End of thread? Richard Morte wrote: > > Brian Somers wrote: > > > > Hi, > > > > What does ``sysctl -a | fgrep ip.forward'' say ? I'd expect the > > answer to be ``net.inet.ip.forwarding: 1'' indicating that the > > machine is forwarding packets. > > > > The difference is that because you've got a DNS on the gateway > > machine, it's effectively acting as a proxy for your DNS requests and > > is independent of the machines packet forwarding capability. ie: > > > > windows DNS --> gateway DNS --> 'net > > > > as distinct from > > > > windows app -> gateway LAN interface -> gateway default interface -> 'net > > Brian, > sysctl reports: > net.inet.ip.forwarding: 0 > > > > Kind regards, > > > Ric > > >  > > > > -- > > Brian > > > > Don't _EVER_ lose your sense of humour ! > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message --------------86F7417D351961545424D578 Content-Type: text/plain; charset=us-ascii; name="rc.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rc.conf" # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # -- sysinstall generated deltas -- # hostname="sparky.at.home" network_interfaces="pn0 lo0 tun0 tun1" ifconfig_pn0="inet 192.168.120.1 netmask 255.255.255.0" ifconfig_pn0_alias0="inet 192.168.120.100 netmask 0xffffffff" # Apache alias tcp_extensions="NO" named_enable="YES" named_flags="-d1" # flags for named - default to /etc/namedb/named.conf gateway_enable="Yes" router_enable="NO" routerflags="" router="" #defaultrouter="sparky.at.home" # Set to default gateway 192.168.120.1 (or NO). #defaultrouter="192.168.120.1" # Set to default gateway 192.168.120.1 (or NO). defaultrouter="NO" # Set to default gateway (192.168.120.1 or NO). moused_enable="YES" keymap="uk.cp850" lpd_enable="YES" linux_enable="YES" saver="daemon" blanktime="300" PKG_TMPDIR="/tmp" --------------86F7417D351961545424D578-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message