Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 1997 18:05:00 -0700 (PDT)
From:      Dan Busarow <>
To:        Duncan Barclay <>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Probably a PPP FAQ.
Message-ID:  <Pine.UW2.3.95.970604174840.19265C-100000@cedb>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 4 Jun 1997, Duncan Barclay wrote:
> Having just got to grips with setting up my FreeBSD box with my ISP for
> news, mail etc. I want to tweak the set-up so that I dont have the
> FreeBSD box hostname+domain name to be the ISP defined.

Give it any name you want.  The PPP interface has an IP address
which just happens to have a name associated with it, but
that doesn't make it your name.

Use /etc/hosts to assign a name to the IP address of your ethernet

> What I dont understand
> 	- does the hostname= line in sysconfig specify the
> 	  hostname and doamin of "computer" or is the
> 	  domain specified in /etc/resolve.conf.

Two totally separate things, even though the domain name is
*usually* the same, it doesn't need to be.

The domain line in /etc/resolv.conf is used for short names, 
ie it's the thing that let's you use ping jenni instead of

You should have in sysconfig

> 	- why doesn't this fiole work?
> OSTYPE(bsd4.4)dnl
> DOMAIN(generic)dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> FEATURE(mailertable, `hash -o /etc/mailertable')dnl
> define(`UUCP_RELAY', ucbvax.Berkeley.EDU)dnl
> define(`BITNET_RELAY', mailhost.Berkeley.EDU)dnl
> define(`CSNET_RELAY', mailhost.Berkeley.EDU)dnl
> define(`confCW_FILE', `-o /etc/')dnl

Remove the UUCP, BITNET and CSNET lines

> FEATURE(`allmasquerade')dnl
> FEATURE(`masquerade_envelope')
> FEATURE(`nodns')dnl
> 	- what does the file do?

You don't need it, take it out.  It allows you to list the
machines you treat as local in a file rather than adding them
to your Cw line in  For three machines, Cw is fine.

I'm not sure what the two masquerade FEATUREs are, but the 
MASQUERADE_AS looks right.

> As a brief aside I have sort of determined that the following static routes
> help my life a little (allows me to telnet when ppp not
> up) are they bad/wrong/odd?  From /etc/sysconfig
> #static_routes="foo multicast"
> #route_foo="woofo woofo-gw"
> #route_multicast=" -netmask 0xf0000000 -interface"
> static_routes="loop_ppp loop_ed0 default"
> route_loop_ppp=""
> route_loop_ed0=""
> route_default="default"

I already chopped your network diagram but route_default should
do it.  Why do you have the two loop routes?

When the system boots (no ppp running) you'll have a specific
route to the LAN (from the ifconfig of the ethernet).  If you try
to go elsewhere (to the Inet) the default route is pointing at
your PPP Link.  What could be better? :)

 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                          
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82

Want to link to this message? Use this URL: <>