From owner-freebsd-questions Thu Apr 19 10: 2:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by hub.freebsd.org (Postfix) with SMTP id 37E7C37B43E for ; Thu, 19 Apr 2001 10:02:12 -0700 (PDT) (envelope-from bsd140870@yahoo.co.uk) Received: from unknown (HELO as2.kptn.org) (210.186.38.93) by smtp.mail.vip.sc5.yahoo.com with SMTP; 19 Apr 2001 17:02:10 -0000 X-Apparently-From: Date: Fri, 20 Apr 2001 01:07:59 +0800 From: Alvin Sim X-Mailer: The Bat! (v1.52 Beta/4) Reply-To: Alvin Sim Organization: n/a X-Priority: 3 (Normal) Message-ID: <1203460005.20010420010759@yahoo.co.uk> To: hawkeyd@visi.com ((D J Hawkey Jr)) Cc: freebsd-questions@freebsd.org Subject: Re: Re[4]: stop ppp dialing on boot (fwd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello D, Friday, April 20, 2001, 12:43:53 AM, you wrote: > newsgroups with an INN client, or strictly by the mailing lists. > Dave > ---8<--- > Path: ruti.visi.com!not-for-mail > Mime-Version: 1.0 > Sender: hawkeyd@visi.com > X-Newsreader: knews 0.9.8a > Reply-To: hawkeyd@visi.com > Organization: if (!FIFO) if (!LIFO) break; > References: <049401c0c7c8$db4c2100$548d093d_oracle@ns.sol.net> > <1681539113.20010418182805_yahoo.co.uk@ns.sol.net> > From: hawkeyd@visi.com (D J Hawkey Jr) > Subject: Re: Re[4]: stop ppp dialing on boot > Newsgroups: sol.lists.freebsd.questions > Content-Type: text/plain; charset=us-ascii > Lines: 95 > Message-ID: > Date: Thu, 19 Apr 2001 13:55:29 GMT > NNTP-Posting-Host: 209.98.170.214 > X-Complaints-To: abuse@visi.com > X-Trace: ruti.visi.com 987688529 209.98.170.214 (Thu, 19 Apr 2001 08:55:29 CDT) > NNTP-Posting-Date: Thu, 19 Apr 2001 08:55:29 CDT > Xref: ruti.visi.com sol.lists.freebsd.questions:68865 > In article <1681539113.20010418182805_yahoo.co.uk@ns.sol.net>, > bsd140870@yahoo.co.uk writes: >> >> ############## >> # rc.conf >> # >> ### Basic network: ### >> network_interfaces="lo0 rl0" >> ifconfig_lo0="inet 127.0.0.1" >> ifconfig_rl0="inet 10.0.0.1 netmask 255.255.255.0" >> hostname="hostname.domain.org" > If you're not running 'named' (per below), I assume "hostname" and > "domain.org" are in /etc/hosts and /etc/resolv.conf, but what is the > resolver using? That is, what is the "nameserver" line(s) in the > latter file pointing to? yes, your assumptions are correct. "hostname" and "domain.org" ar ein /etc/hosts. nameserver points to my isp, indeed. > If it's pointing to your ISP's DNS server, doesn't that solve the > mystery? Your resolver is going out through the PPP link to ask their > DNS server any queries your network's machines have about themselves, > as well as the outside world, no? i suppose it does. so, if it is so, how do i _not_ point it to my isp's dns server? or is that even possible? >> # >> ### Network routing options: ### >> gateway_enable="YES" > Have you checked that your other machines aren't requesting anything > through your FreeBSD box (the gateway)? yes. and i am sure that none of the other boxes are requesting anything from the FreeBSD box. (i.e. none of the other 2 machines are even online/up). >> # >> # NAT settings >> natd_enable="YES" >> natd_interface="tun0" >> natd_flags="-dynamic" > I'm foggy on this... Does 'natd' do a DNS lookup on initialization? i'm not sure myself but it's what is stated in the handbook/tutorial chapter on firewall. > I've set mine on differently; 'natd' isn't started on boot, but on > first need of the PPP interface. i dont get it. can you explain a little more on this. >> # >> # DNS options >> named_enable="NO" >> nisdomainname="NO" >> >> [SNIP] >> >> ################################################################# >> # PPP Sample Configuration File >> # Originally written by Toshiharu OHNO >> # Simplified 5/14/1999 by wself@cdrom.com >> # >> # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2 1999/08/27 23:24:08 peter Exp $ >> ################################################################# >> >> default: >> >> allow users ntuser 98user >> # nat enable yes >> # >> # From the FreeBSD Handbook, Sect. 16.2.1.5.3 - Receiving Incoming Calls >> # Enabling packet forwarding in local LAN >> # enable proxy >> >> [SNIP] >> >> provider: >> set authname _AUTHNAME_ >> set authkey _AUTHKEY_ >> set phone _123456_ >> set timeout 120 >> set openmode active >> accept chap >> set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 >> add default HISADDR >> enable dns > AFAIK, the "set ifaddr" line is for the other side of the PPP interface. > The ten-dot network is your internal network (by the "ifconfig_rl0=" line). > I think these are then treated as dummies, and PPP negotiation determines > what they really will be. > After the link is up, what does 'ifconfig rl0' show? as1# ifconfig rl0 rl0: flags=8843 mtu 1500 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::240:95ff:fe2d:13e1%rl0 prefixlen 64 scopeid 0x1 ether 00:40:95:2d:13:e1 media: autoselect (none) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX > I'm foggy on this, too. Does it do a DNS query in the course of execution? it might be. i dont know, really. > No answers, sorry, but maybe some things to look into. > Dave -- Alvin bsd140870@yahoo.co.uk _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message