From owner-freebsd-questions Wed Apr 18 3:23:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by hub.freebsd.org (Postfix) with SMTP id 8243337B422 for ; Wed, 18 Apr 2001 03:23:12 -0700 (PDT) (envelope-from bsd140870@yahoo.co.uk) Received: from j34.kch12.jaring.my (HELO as2.kptn.org) (161.142.230.48) by smtp.mail.vip.sc5.yahoo.com with SMTP; 18 Apr 2001 10:23:10 -0000 X-Apparently-From: Date: Wed, 18 Apr 2001 18:28:05 +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: <1681539113.20010418182805@yahoo.co.uk> To: FreeBSD Questions Subject: Re[4]: stop ppp dialing on boot In-Reply-To: <049401c0c7c8$db4c2100$548d093d@oracle> References: <395951968.20010418112232@yahoo.co.uk> <044501c0c7b6$d5e98480$548d093d@oracle> <868976537.20010418121257@yahoo.co.uk> <049401c0c7c8$db4c2100$548d093d@oracle> 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 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