Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 10:14:11 +0200
From:      "Idar Tollefsen" <Idar.Tollefsen@baerum.kommune.no>
To:        <freebsd-net@freebsd.org>
Subject:   How to set up a gateway?
Message-ID:  <scbd4afd.036@mail.baerum.kommune.no>

next in thread | raw e-mail | index | archive | help
Hello,

I have a machine running FreeBSD 4.5 STABLE. This machine has two NICs
in it, one connected to the internal LAN and one connected to a ADSL
modem (I'm using PPPoE).

I've successfully managed to set them up so that the FreeBSD machine
has access to the Internet, that works flawlessly, but I'm not able to
get this machine to act as a gateway for other computers on my network.

For the time being, internal IP addresses are used, but real once will
be put in place in the not so distant future.

I've done the following:

rc.conf:
PPP_NAT=3D"YES"
ENABLE_GATWAY=3D"YES"

ppp.conf:
nat enable yes

I've compiled netgraph into the kernel
(NETGRAPH, NETGRAPH_EHTER, NETGRAPH_SOCKET).

Of the two NICs, only the one connected to the LAN is configured
during startup. The ADSL connection is also established during
startup and tun0 is added as the default gateway interface.

I don't have a firewall running (yet). I have a DNS server on
this machine, and other machines can successfully lookup
hostnames. But when I tell them that they should use the
FreeBSD machine as a gateway, they simply time out when
trying to connect to something outside of the LAN.

Any idea what I'm forgetting or doing wrong?


- IT


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?scbd4afd.036>