Date: Wed, 4 Jun 1997 18:05:00 -0700 (PDT) From: Dan Busarow <dan@dpcsys.com> To: Duncan Barclay <dmlb@ragnet.demon.co.uk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Probably a PPP FAQ. Message-ID: <Pine.UW2.3.95.970604174840.19265C-100000@cedb> In-Reply-To: <199706042018.VAA17291@ragnet.demon.co.uk>
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 card. > 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 ping jenni.my.domain You should have computer.my.domain in sysconfig > - 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 Remove the UUCP, BITNET and CSNET lines > MASQUERADE_AS(`ragnet.demon.co.uk')dnl > FEATURE(`allmasquerade')dnl > FEATURE(`masquerade_envelope') > FEATURE(`nodns')dnl > - what does the sendmail.cw 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 sendmail.cf 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 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" 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 -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970604174840.19265C-100000>