*BSD News Article 73442


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!newsfeed.internetmci.com!news.msfc.nasa.gov!elroy.jpl.nasa.gov!decwrl!usenet.cisco.com!iverson
From: iverson@cisco.com (Tim Iverson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: router with variable IP
Date: 12 Jul 1996 00:58:47 GMT
Organization: cisco
Lines: 22
Message-ID: <4s4807$p03@cronkite.cisco.com>
References: <8427-264432202@pinboard.com>
NNTP-Posting-Host: rottweiler.cisco.com

In article <8427-264432202@pinboard.com>,  <kurt@pinboard.com> wrote:
|If I want to use my FreeBSD box as a router, I do need static IP
|addresses, as far as I know. However, my ISP can not provide logins with
|static IP addresses. Does anybody know whether there is some way to use
|a FreeBSD machine as a router that has one interface with a static IP so
|I can connect the other machines to it, and one interface that will
|accept the (variable) address my ISP gives me each time I call, so I can
|route from the static IP to the variable IP to the Internet?

No, you don't really need any static routes.  If your IP addresses are all
public, then it's very simple; setup a default route to the PPP interface.
If you are using private IP addresses, like 10.*.*.*, then you need to use
NAT (network address translation) in addition to a default route.

Two ways to do NAT.  Dialup to a shell and run SLiRP or TIA, which does a
pretty good job of NAT, but puts more of a burden on your ISP's system (some
ISPs really don't like this).  Or, install ipfilter, a firewall tool that
also does NAT; http://cheops.anu.edu.au/~avalon/ip-filter.html.


- Tim Iverson
  iverson@lionheart.com