Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 1998 11:53:16 +0200 (SAT)
From:      Johann Visagie <wjv@cityip.co.za>
To:        kathey@pobox.com (-kevin-)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Looking for a Gateway How-To
Message-ID:  <E0yhAEO-00008E-00@ns.cityip.co.za>
In-Reply-To: <3.0.5.32.19980602170553.00920bc0@netmail.home.net> from -kevin- at "Jun 2, 98 05:05:53 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
-kevin- wrote:
>
> How do you make a machine a gateway?

[ ... ]

> But if I try to 'ping', 'ftp', 'http' or anything else it just won't do it
> and the 'tracert' (Windows NT name for 'traceroute') shows the packets
> getting to the FreeBSD machine just fine, but then they never get any further.

OK, let's start with the simplest possibility:  Are you sure you enabled the
FreeBSD kernel's IP forwarding facility?  In "late model" FreeBSDs you can do
that by simply setting one line in /etc/rc.conf:

gateway_enable="YES"            # Set to YES if this host will be a gateway.

See sysctl(8) for more info.

You shouldn't need to bother with routed or gated just to get a simple setup
working - static routing should be fine.  If the above doesn't work, then
check your kernel's idea of the routing table with a "netstat -rn".

Oh, and the IP address of the FreeBSD machines NIC must be the default
gateway for all the internal machines.  But I suppose that's already been set
if their traceroute gets as far as your gateway box.

-- V

Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878

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?E0yhAEO-00008E-00>