From owner-freebsd-questions Sun Jun 1 15:02:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA07076 for questions-outgoing; Sun, 1 Jun 1997 15:02:56 -0700 (PDT) Received: from shell6.ba.best.com (jkb@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA07069 for ; Sun, 1 Jun 1997 15:02:53 -0700 (PDT) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.8.5/8.7.3) with SMTP id PAA23663; Sun, 1 Jun 1997 15:02:47 -0700 (PDT) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Sun, 1 Jun 1997 15:02:47 -0700 (PDT) From: Jan Koum X-Sender: jkb@shell6.ba.best.com To: Almondale@aol.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: IP Masquerading In-Reply-To: <970601172501_877375401@emout07.mail.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 1 Jun 1997 Almondale@aol.com wrote: > Date: Sun, 1 Jun 1997 17:25:02 -0400 (EDT) > From: Almondale@aol.com > To: freebsd-questions@FreeBSD.ORG > Subject: IP Masquerading > > The latest linux kernel includes support for IP Masquerading, so "private > lans" can share a dialup gateway. What (if any) support does FreeBSD have for > doing this. I have the most recent PPP binaries, but the routed command, when If you are using a modem, you can do it with ppp -alias (there is a very good tutorial on how to do it on www.freebsd.org) You can also do the same with two ethernet cards - you would need to get NAT daemon and compile your kernel with "options IPFIREWALL" and "options IPDIVERT" - but read more about it in natd documentation/man page. > invoked with -q, returns "no route to hosts" or "can't assign requested > address", and I get the effect described in the PPP manpages, namely the > gateway host can see the internet via my ISP but *is not forwarding* packets > back to my private LAN. I have invoked ppp with the -alias subcommand and > given the static route to my ISDN-modem-equipped Freebsd (2.2.1) machine, but > IP forwarding never seems to occur. I have even tried to remake the kernel Did you set "gateway=YES" in /etc/sysconfig? > using MROUTED, but it seems to me routed itself *ought* to work? Anybody with > experience getting this setup to work? > -- yan