From owner-freebsd-questions Wed Apr 18 3:52:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by hub.freebsd.org (Postfix) with ESMTP id 7E90537B43C for ; Wed, 18 Apr 2001 03:52:03 -0700 (PDT) (envelope-from dyoung6@bigpond.net.au) Received: from oracle ([139.134.4.56]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GBZIF900.7D1; Wed, 18 Apr 2001 20:57:09 +1000 Received: from CPE-61-9-141-84.vic.bigpond.net.au ([61.9.141.84]) by mail3.bigpond.com (Claudes-Self-Aware-MailRouter V2.9c 5/3755931); 18 Apr 2001 20:51:53 Message-ID: <05df01c0c7f5$980ae660$548d093d@oracle> From: "Doug Young" To: "Alvin Sim" , "FreeBSD Questions" Cc: "Rasputin" References: <395951968.20010418112232@yahoo.co.uk> <044501c0c7b6$d5e98480$548d093d@oracle> <868976537.20010418121257@yahoo.co.uk> <049401c0c7c8$db4c2100$548d093d@oracle> <1681539113.20010418182805@yahoo.co.uk> Subject: Re: Re[4]: stop ppp dialing on boot Date: Wed, 18 Apr 2001 20:51:56 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doesn't appear to be anything in rc.conf causing the problem .... is ntpd installed or maybe something else in rc.d is involved ?? ----- Original Message ----- From: "Alvin Sim" To: "FreeBSD Questions" Sent: Wednesday, April 18, 2001 8:28 PM Subject: Re[4]: stop ppp dialing on boot > Wednesday, April 18, 2001, 01:31:44 PM, Doug Young wrote: > > DY> I understood from the subject line that you DIDN'T want it to dial on boot > > you are right on the subject but... i _do_ want it to dial when the > server sees/senses/detects any outbound (i.e. to the 'net) traffic from > my 2 other machines but _not_ upon booting up. otherwise, the server > will just sit there quietly and _not_ connect if no one is trying to get > to the 'net. sure i can telnet/ssh into the server and do a 'ppp -auto > provider' but the other person does not. does that make any sense? or > is there a better way of doing this? > > i'm re-inserting my whole rc.conf file & ppp.conf if its going to help > any... below. > > [...snip...] > > >> Wednesday, April 18, 2001, 11:22:44 AM, Doug Young wrote: > >> > DY> I'd start by commenting out those last four lines > >> > >> [...snip...] > >> > >> well, it doesnt dial out when the last four lines below is commented > >> out, as i previously stated below. any more suggestions? > >> > >> i have a very simple lan comprising of a fbsd server (4.3-rc) that > >> serves as a gateway to 2 other machines running ntws and 98. ppp is > >> configured and i can dial 'ppp -auto provider' w/ no problems from a > >> ssh session from nt (telnet is disabled). now, this seems very > >> unconventional that i have to make a ssh session everytime i want to > >> connect to my isp. furthermore, the person behind the machine running > >> 98 has zero knowledge of doing anything of that sort (i.e. telnet, > >> ssh... ) > >> > >> ok, so i set up ppp to dial when there's a connection going out of my > >> lan when the system boots up. but... somehow, it dials everytime it > >> boots up instead of when it detects an outbound connection from my > >> lan. and i dont want that (dialing upon booting up) since i'm > >> charged on a per-minute dialup basis. anyways, i'm including part my > >> rc.conf config if someone can have a look at it and tell me where i > >> did wrong. > >> > start my rc.conf > =========================================================== > ############## > # 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" > > # > ### Network routing options: ### > gateway_enable="YES" > router_enable="NO" > defaultrouter="NO" > forward_sourceroute="NO" > accept_sourceroute="NO" > tcp_drop_synfin="NO" > tcp_restrict_rst="NO" > > # > # IPv6 settings > ipv6_enable="NO" > > # > firewall_enable="YES" > firewall_script="/etc/firewall/script" > firewall_type="open" > firewall_quite="YES" > > # > # NAT settings > natd_enable="YES" > natd_interface="tun0" > natd_flags="-dynamic" > > # > # User ppp configuration. > ppp_enable="YES" > ppp_mode="auto" > ppp_nat="NO" > ppp_profile="provider" > > ### Network daemon (miscellaneous) & NFS options: ### > # > # Enable inetd and logging > inetd_enable="NO" > inetd_flags="-l -R 30" > > # > # NFS settings > portmap_enable="NO" > nfs_server_enable="NO" > nfs_server_flags="-u -t -n 4" > nfs_client_enable="NO" > nfs_client_flags="-n 4" > mountd_flags="-r" > > # > # SSH Daemon options > #sshd_enable="NO" # Enable sshd > #sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one. > #sshd_flags="" # Additional flags for sshd. > > # > # DNS options > named_enable="NO" > nisdomainname="NO" > > # > # Sendmail Daemon options > sendmail_enable="NO" > sendmail_flags="-bd" > > # > # QUOTA settings > check_quotas="NO" > > # > # Miscellaneous settings > moused_enable="NO" > saver="daemon" > keyrate="fast" > local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" > pccard_enable="NO" > pccard_ifconfig="NO" > pccard_mem="DEFAULT" > =========================================================== > end my rc.conf > > start my ppp.conf > =========================================================== > ################################################################# > # 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 > > set device /dev/cuaa0 > set log Phase Chat LCP IPCP CCP tun command > set speed 115200 > disable pred1 > deny pred1 > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0L0 OK \\dATDT\\T TIMEOUT 120 CONNECT" > > 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 > =========================================================== > end my ppp.conf > > > >> if ppp_enable="NO", i then have to manually dial. if ppp_enable="YES", > >> it dials on booting up :( so, how can i make it dial ONLY when it > >> detects an outbound traffic? thanks for looking into this. > > > -- > Alvin mailto: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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message