Date: Mon, 2 Jun 1997 12:52:56 +0000 () From: "Lenzi, Sergio" <lenzi@bsi.com.br> To: Almondale@aol.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IP Masquerading Message-ID: <Pine.BSF.3.91.970602124735.3669B-100000@sergio> In-Reply-To: <970601172501_877375401@emout07.mail.aol.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970602124735.3669B-100000>