From owner-freebsd-questions Mon Jun 2 08:49:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA25152 for questions-outgoing; Mon, 2 Jun 1997 08:49:19 -0700 (PDT) Received: from server.netplus.com.br ([200.247.23.97]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA25143 for ; Mon, 2 Jun 1997 08:49:05 -0700 (PDT) Received: from sergio.lenzi (dial09.netplus.com.br [200.247.23.108]) by server.netplus.com.br (8.7.6/8.7.3) with ESMTP id MAA15069; Mon, 2 Jun 1997 12:41:25 GMT Received: (from lenzi@localhost) by sergio.lenzi (8.8.5/8.8.3) id MAA03734; Mon, 2 Jun 1997 12:53:20 GMT Date: Mon, 2 Jun 1997 12:52:56 +0000 () From: "Lenzi, Sergio" X-Sender: lenzi@sergio 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: > 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 > 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 > using MROUTED, but it seems to me routed itself *ought* to work? Anybody with > experience getting this setup to work? > > Thanks, > Alex To use ip masquerading in FreeBSD use the ppp with the -alias keyword. ppp -alias -auto xxx ping anything..... make it dial to your provider and assign a default route to it and do the masquerading thing.... the file /etc/ppp/ppp.conf.... default: set device /dev/modem set speed 57600 disable lqr deny lqr set redial 10 0 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\ \T TIMEOUT 40 CONNECT" xxx: set phone 555-6677 set login "TIMEOUT 5 ogin:-\\r-ogin: aaa word: xxx" set timeout 180 set ifaddr 0 1.1.1.1/0 add 0 0 1.1.1.1 Sergio Lenzi. Unix consult.