From owner-freebsd-questions Wed Feb 15 06:49:54 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id GAA19937 for questions-outgoing; Wed, 15 Feb 1995 06:49:54 -0800 Received: from prosun.first.gmd.de (prosun.first.gmd.de [192.35.150.136]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id GAA19922 for ; Wed, 15 Feb 1995 06:49:42 -0800 Received: from g386bsd.first.gmd.de by prosun.first.gmd.de (4.1/SMI-4.1) id AA19914; Wed, 15 Feb 95 15:49:15 +0100 Received: by g386bsd.first.gmd.de (PAA11493); Wed, 15 Feb 1995 15:51:22 +0100 From: Andreas Schulz Message-Id: <199502151451.PAA11493@g386bsd.first.gmd.de> Subject: Re: Gateway To: jg@euronet.nl (Jan_Guldemond) Date: Wed, 15 Feb 1995 15:51:22 +0059 (MET) Cc: questions@FreeBSD.org In-Reply-To: <199502151403.PAA09145@mail.euronet.nl> from "Jan_Guldemond" at Feb 15, 95 03:03:59 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1650 Sender: questions-owner@FreeBSD.org Precedence: bulk > I want to use my FreeBSD Internet-host as a gateway. What I mean is that it > should get the IP packages from the LAN that are not ment for the local > machines (193.78.175.0) and route it through my SLIP connection to the > InterNet provider. > > My situation is like this: > * Our LAN has the IP-address 193.78.175.0 > * My SLIP connection is: 193.78.242.118 (me) to 193.78.240.1 (InterNet provider) > > When booting FreeBSD the routed is started with the option -q. But the > server doesn't seem to do what I want it to do :-( > The InterNet connection runs great when I'm using the server. I can ftp, > ping etc. But I can't access InterNet from the workstations on the LAN. The > TCP packages run ok, because I can ftp from the workstations as long as I > ftp from my own server (from 193.78.175.16 to 193.78.175.1) You need first teach your gateway machine to route packets between the two interfaces. For FreeBSD2.0 you can add a sysctl -w net.inet.ip.forwarding=1 at the end of your /etc/netstart. That allows to route the packets. The other thing is to put a default route from the other machines to the gateway machine, then you don't even need to run routed on them. So something like a "route add default 193.78.170.xx" to their /etc/netstarts. And the Gateway machines needs a "route add default 193.78.242.118" ??? i hope, or the 193.78.240.1. I always forget which address of the slip link is the correct one for that. ATS ( ats@first.gmd.de or ats@cs.tu-berlin.de ) Andreas Schulz GMD-FIRST 12489 Berlin-Adlershof Rudower Chaussee 5 Gebaeude 13.7 Tel: +49-30-6392-1856/+49-177-2134745 Germany/Europe