Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 1997 21:18:06 +0100 (BST)
From:      Duncan Barclay <dmlb@ragnet.demon.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Probably a PPP FAQ.
Message-ID:  <199706042018.VAA17291@ragnet.demon.co.uk>

Next in thread | Raw E-Mail | Index | Archive | Help

I have search high and low for the answer to this, DegaNews, mail
archives, sendmail FAQ, ppp FAQ you name it...

Running 2.2.1-R, will be CTMing up to 2.2.2-R

Anyway I want the proverbial home network and ppp to ISP set up with the
right hostnames and domains.

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.

First in IP addresses the net looks like this

  +------+           +---------------------+
  | ISP  | -- ppp -- | tun0, 158.152.46.40 |
  +------+           +==== FreeBSD box ====+
                     | ep0, 192.168.200.32 |
                     +---------------------+
                                |
                                e     +------------------------+
                                t-----| Win 95, 192.168.200.33 |
                                h     +------------------------+
                                e
                                r     +------------------------+
                                |-----| Sun3/60 192.168.200.34 |
                                      +------------------------+

Before the ppp link the machines were:
	machine		hostname	domain name
	FreeBSD		computer	my.domain
	Win 95		jenni		my.domain
	Sun 3		iceberg		my.domain

Now, my ISP assigned hostname is "ragnet.demon.co.uk" so the the
machines are currently:
	machine		hostname	domain name
	FreeBSD		ragnet		demon.co.uk
	Win 95		jenni		my.domain
	Sun 3		iceberg		my.domain

I would like to go back to the original set-up and have the FreeBSD box 
treat the ppp link just as a link to the outside world. I think the only
problem is with sendmail? (if the "best" solution is smail or whatever
then thats fine too)

What I so far understand I need to do is
	 - have a sendmail.mc file with things like
		nodns
		masquerade_as
		masquerade_envelope
		smtp expensive?
  	 - probably run a caching name-server on "computer"
I dont know where to start on the nameserver, whenever I have tried the
sendmail stuff it doesnt work (headers dont get re-written etc.) and yes
I do restart sendmail.

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.
	- why doesn't this sendmail.mc 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/sendmail.cw')dnl

MASQUERADE_AS(`ragnet.demon.co.uk')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')
FEATURE(`nodns')dnl
	- what does the sendmail.cw file do?

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

As way of a thank-you I am finishing off a INN/SUCK howto and set of painless
scripts which should be finished in a few days (docbook is soo
verbose...)

Thanks

Duncan

Also posted to comp.unix.bsd.freebsd.misc

________________________________________________________________________
Raggy                   | God smiles upon the little children,
dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned.
________________________________________________________________________



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199706042018.VAA17291>