From owner-freebsd-questions Wed Jun 3 02:53:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA11085 for freebsd-questions-outgoing; Wed, 3 Jun 1998 02:53:35 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA11078 for ; Wed, 3 Jun 1998 02:53:27 -0700 (PDT) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0yhAEO-00008E-00; Wed, 3 Jun 1998 11:53:16 +0200 Subject: Re: Looking for a Gateway How-To In-Reply-To: <3.0.5.32.19980602170553.00920bc0@netmail.home.net> from -kevin- at "Jun 2, 98 05:05:53 pm" To: kathey@pobox.com (-kevin-) Date: Wed, 3 Jun 1998 11:53:16 +0200 (SAT) Cc: freebsd-questions@FreeBSD.ORG X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc X-URL: http://www.cityip.co.za/~wjv/ X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Johann Visagie Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -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