Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 1995 15:51:22 +0059 (MET)
From:      Andreas Schulz <ats@g386bsd.first.gmd.de>
To:        jg@euronet.nl (Jan_Guldemond)
Cc:        questions@FreeBSD.org
Subject:   Re: Gateway
Message-ID:  <199502151451.PAA11493@g386bsd.first.gmd.de>
In-Reply-To: <199502151403.PAA09145@mail.euronet.nl> from "Jan_Guldemond" at Feb 15, 95 03:03:59 pm

next in thread | previous in thread | raw e-mail | index | archive | help

> 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



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