*BSD News Article 92506


Return to BSD News archive

#! rnews 1889 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsxfer.itd.umich.edu!newsxfer3.itd.umich.edu!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news.pbi.net!uunet!in2.uu.net!192.174.65.41!01-newsfeed.univie.ac.at!03-newsfeed.univie.ac.at!fstgal00.tu-graz.ac.at!not-for-mail
From: schinagl@pe.avl.co.at (Hermann Schinagl)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Q: Ip Masquarading
Date: Wed, 26 Mar 1997 06:50:00 GMT
Organization: Graz University of Technology, Austria
Lines: 32
Message-ID: <3338c515.601605@avlgate.avl.co.at>
References: <3330d809.536023@news-s01.ny.us.ibm.net>
NNTP-Posting-Host: firewallext.avl.co.at
X-Newsreader: Forte Free Agent 1.1/32.230
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38213

On Thu, 20 Mar 1997 06:26:13 GMT, pavlidis@ibm.net (Savas Pavlidis)
wrote:

>Does the FreeBSD IP Masquerading? If yes, can I do the following:
>Get dynamically an IP address from an ISP, then use addresses from
>192.168.1.xxx for example to client PC's. These addresses should be
>given dynamically to client PC's.
>

Yes this, works. 

But, if you want to use your freebsd box as router to the ISP
you need aliasing, and this works in 2.2 out of the box.

Under 2.1.x you need a patch to ppp.

Furthermore gateway must be switched on in /etc/sysconfig, and
you have to configure your ed0 properly, so that your local
network runs via ed0, and your local PCs have addresses 
like 192.168.x.x.

When you call your ISP the tun0 interface gets configured
dynamically with an IP address from your provider, and 
packages are routed from your localnetwork to the internet
via tun0.

Look for 'iij-demand' or something else in /etc/ppp/ppp.conf
for demand dial on demand ppp.

             Ciao Hermann