Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 1999 19:37:23 +0100
From:      Richard Morte <ric@sinclairassoc.force9.co.uk>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Problem Accessing Internet via FreeBSD Gateway
Message-ID:  <380622E3.7E23913A@sinclairassoc.force9.co.uk>
References:  <199910132231.XAA01836@hak.lan.Awfulhak.org> <38057269.A9E96405@sinclairassoc.force9.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <marcel@scc.nl>
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 <brian@Awfulhak.org>                        <brian@FreeBSD.org>
> >       <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
> > Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>
> >
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?380622E3.7E23913A>