Date: Wed, 29 May 2002 19:05:44 -0400 From: Pete C <christie@idsi.net> To: questions@freebsd.org Subject: User PPP and dial in ISP Message-ID: <3CF55EC8.9030707@idsi.net>
next in thread | raw e-mail | index | archive | help
this is a repost of a previous messsage, with a few files copied as suggested from someone in a private e-mail, at the bottom are /etc/rc.conf, /etc/ppp/ppp.conf, /var/log/ppp.log and /var/run/dmesg.boot I recently started experimenting with FreeBSD PPP for use as a router/gateway for my home network (just two machines right now, one FreeBSD box and one Win98). I have it up and running, but am wondering about alot of what seem to be 'random' attempts to connect. I'm using -auto mode, and with no 'explicit' call for an ip outside of my local network it seems to dial in. I also seem to get a whole lot of bad attempts (more than with Win98 doing the dialing) where I hear the modem 'connect' to the other end, but I get "chat script failed". using ver 4.2 any help / pointers would be appriceated . . . Pete C /etc/rc.conf # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # Enable network daemons for user convenience. # -- sysinstall generated deltas -- # ifconfig_xl0="inet 192.168.17.1 netmask 255.255.255.0" hostname="birddog.thechristies.net" linux_enable="YES" sendmail_enable="YES" moused_port="/dev/cuaa0" moused_type="intellimouse" moused_enable="YES" saver="logo" keyrate="fast" gateway_enable="YES" router_enable="YES" router="routed" sshd_enable="YES" portmap_enable="YES" nfs_server_enable="YES" nfs_client_enable="YES" inetd_enable="YES" ppp_enable="YES" ppp_mode="auto" ppp_nat="YES" ppp_profile="idsi" ppp_user="root" /etc/ppp/ppp.conf ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.1 2000/08/18 08:33:02 jhb Exp $ ################################################################# default: ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa2 set log Phase Chat LCP IPCP CCP tun command set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 60 CONNECT" set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set timeout 2700 # 45 mintue idle timer add default HISADDR # Add a (sticky) default route enable dns # request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone PHONE_NUM set authname USERNAME set authkey PASSWORD idsi: set phone 15006994374 set authname christie set authkey ******* /var/log/ppp.log May 28 18:00:00 birddog newsyslog[11266]: logfile turned over May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: Carrier lost May 29 18:33:07 birddog ppp[98]: tun0: CCP: deflink: State change Stopped --> Closed May 29 18:33:07 birddog ppp[98]: tun0: CCP: deflink: State change Closed --> Initial May 29 18:33:07 birddog ppp[98]: tun0: LCP: deflink: LayerDown May 29 18:33:07 birddog ppp[98]: tun0: LCP: deflink: State change Opened --> Starting May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: open -> lcp May 29 18:33:07 birddog ppp[98]: tun0: IPCP: deflink: LayerDown: 64.72.71.204 May 29 18:33:07 birddog ppp[98]: tun0: IPCP: Using trigger address 0.0.0.0 May 29 18:33:07 birddog ppp[98]: tun0: IPCP: deflink: State change Opened --> Starting May 29 18:33:07 birddog ppp[98]: tun0: IPCP: deflink: LayerFinish. May 29 18:33:07 birddog ppp[98]: tun0: IPCP: Connect time: 262 secs: 5951 octets in, 2212 octets out May 29 18:33:07 birddog ppp[98]: tun0: IPCP: : 32 packets in, 40 packets out May 29 18:33:07 birddog ppp[98]: tun0: IPCP: total 31 bytes/sec, peak 944 bytes/sec on Wed May 29 18:33:07 2002 May 29 18:33:07 birddog ppp[98]: tun0: IPCP: deflink: State change Starting --> Initial May 29 18:33:07 birddog ppp[98]: tun0: Phase: bundle: Terminate May 29 18:33:07 birddog ppp[98]: tun0: LCP: deflink: LayerFinish May 29 18:33:07 birddog ppp[98]: tun0: LCP: deflink: State change Starting --> Initial May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: Disconnected! May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: lcp -> logout May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: Disconnected! May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: logout -> hangup May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: Connect time: 299 secs: 6424 octets in, 2889 octets out May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: : 108 packets in, 52 packets out May 29 18:33:07 birddog ppp[98]: tun0: Phase: total 31 bytes/sec, peak 980 bytes/sec on Wed May 29 18:33:07 2002 May 29 18:33:07 birddog ppp[98]: tun0: Phase: deflink: hangup -> closed May 29 18:33:07 birddog ppp[98]: tun0: Phase: bundle: Dead May 29 18:33:47 birddog ppp[98]: tun0: Phase: bundle: Establish May 29 18:33:47 birddog ppp[98]: tun0: Phase: deflink: closed -> opening May 29 18:33:48 birddog ppp[98]: tun0: Phase: deflink: Connected! May 29 18:33:48 birddog ppp[98]: tun0: Phase: deflink: opening -> dial May 29 18:33:48 birddog ppp[98]: tun0: Chat: Phone: 15006994374 May 29 18:33:48 birddog ppp[98]: tun0: Chat: deflink: Dial attempt 1 of 1 May 29 18:33:48 birddog ppp[98]: tun0: Chat: Send: AT^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Expect(5): OK May 29 18:33:48 birddog ppp[98]: tun0: Chat: Received: AT^M^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Received: OK^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Send: ATE1Q0^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Expect(5): OK May 29 18:33:48 birddog ppp[98]: tun0: Chat: Received: ATE1Q0^M^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Received: OK^M May 29 18:33:48 birddog ppp[98]: tun0: Chat: Send: ATDT15006994374^M May 29 18:33:50 birddog ppp[98]: tun0: Chat: Expect(60): CONNECT May 29 18:34:14 birddog ppp[98]: tun0: Chat: Received: ATDT15006994374^M^M May 29 18:34:14 birddog ppp[98]: tun0: Chat: Received: CONNECT 115200^M May 29 18:34:14 birddog ppp[98]: tun0: Phase: deflink: dial -> carrier May 29 18:34:15 birddog ppp[98]: tun0: Phase: deflink: /dev/cuaa2: CD detected May 29 18:34:15 birddog ppp[98]: tun0: Phase: deflink: carrier -> login May 29 18:34:15 birddog ppp[98]: tun0: Phase: deflink: login -> lcp May 29 18:34:15 birddog ppp[98]: tun0: LCP: FSM: Using "deflink" as a transport May 29 18:34:15 birddog ppp[98]: tun0: LCP: deflink: State change Initial --> Closed May 29 18:34:15 birddog ppp[98]: tun0: LCP: deflink: State change Closed --> Stopped May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: RecvConfigReq(9) state = Stopped May 29 18:34:16 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x000a0000 May 29 18:34:16 birddog ppp[98]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP) May 29 18:34:16 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0xb894388f May 29 18:34:16 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:16 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:16 birddog ppp[98]: tun0: LCP: MRRU[4] 1524 May 29 18:34:16 birddog ppp[98]: tun0: LCP: ENDDISC[11] Local Addr: pghknysh May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: SendConfigReq(2) state = Stopped May 29 18:34:16 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:16 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:16 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x00000000 May 29 18:34:16 birddog ppp[98]: tun0: LCP: MRU[4] 1500 May 29 18:34:16 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0x90c31e48 May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: SendConfigRej(9) state = Stopped May 29 18:34:16 birddog ppp[98]: tun0: LCP: MRRU[4] 1524 May 29 18:34:16 birddog ppp[98]: tun0: LCP: Sending ident magic 90c31e48 text user-ppp 2.27 (built Nov 20 2000) May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: SendIdent(3) state = Stopped May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: LayerStart May 29 18:34:16 birddog ppp[98]: tun0: LCP: deflink: State change Stopped --> Req-Sent May 29 18:34:19 birddog ppp[98]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent May 29 18:34:19 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:19 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:19 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x00000000 May 29 18:34:19 birddog ppp[98]: tun0: LCP: MRU[4] 1500 May 29 18:34:19 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0x90c31e48 May 29 18:34:22 birddog ppp[98]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent May 29 18:34:22 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:22 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:22 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x00000000 May 29 18:34:22 birddog ppp[98]: tun0: LCP: MRU[4] 1500 May 29 18:34:22 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0x90c31e48 May 29 18:34:25 birddog ppp[98]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent May 29 18:34:25 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:25 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:25 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x00000000 May 29 18:34:25 birddog ppp[98]: tun0: LCP: MRU[4] 1500 May 29 18:34:25 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0x90c31e48 May 29 18:34:28 birddog ppp[98]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent May 29 18:34:28 birddog ppp[98]: tun0: LCP: ACFCOMP[2] May 29 18:34:28 birddog ppp[98]: tun0: LCP: PROTOCOMP[2] May 29 18:34:28 birddog ppp[98]: tun0: LCP: ACCMAP[6] 0x00000000 May 29 18:34:28 birddog ppp[98]: tun0: LCP: MRU[4] 1500 May 29 18:34:28 birddog ppp[98]: tun0: LCP: MAGICNUM[6] 0x90c31e48 May 29 18:34:31 birddog ppp[98]: tun0: LCP: deflink: LayerFinish May 29 18:34:31 birddog ppp[98]: tun0: LCP: deflink: State change Req-Sent --> Stopped May 29 18:34:31 birddog ppp[98]: tun0: LCP: deflink: State change Stopped --> Closed May 29 18:34:31 birddog ppp[98]: tun0: LCP: deflink: State change Closed --> Initial May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: Disconnected! May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: lcp -> logout May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: logout -> hangup May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: Disconnected! May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: Connect time: 43 secs: 71 octets in, 343 octets out May 29 18:34:31 birddog ppp[98]: tun0: Phase: deflink: : 111 packets in, 59 packets out May 29 18:34:31 birddog ppp[98]: tun0: Phase: total 9 bytes/sec, peak 50 bytes/sec on Wed May 29 18:34:31 2002 May 29 18:34:32 birddog ppp[98]: tun0: Phase: deflink: hangup -> closed May 29 18:34:32 birddog ppp[98]: tun0: Phase: bundle: Dead /var/run/dmesg.boot Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (90.04-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x521 Stepping = 1 Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 50331648 (49152K bytes) config> di sn0 config> di lnc0 config> di ie0 config> di fe0 config> di cs0 config> en sio2 config> po sio2 0x3e8 config> ir sio2 5 config> f sio2 0 config> en ppc0 config> ir ppc0 7 config> f ppc0 0 config> en ed0 config> po ed0 0x280 config> ir ed0 10 config> iom ed0 0xd8000 config> f ed0 0 config> q avail memory = 44793856 (43744K bytes) Preloaded elf kernel "kernel" at 0xc0436000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc043609c. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX3 ATA controller> port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 xl0: <3Com 3c905-TX Fast Etherlink XL> port 0x6100-0x613f irq 11 at device 11.0 on pci0 xl0: Ethernet address: 00:60:97:5b:6a:d4 miibus0: <MII bus> on xl0 nsphy0: <DP83840 10/100 media interface> on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: <S3 968 graphics accelerator> at 12.0 irq 10 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2 at port 0x3e8-0x3ef irq 5 drq 0 on isa0 sio2: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 drq 0 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 ad0: 521MB <Maxtor 7546 AT> [1060/16/63] at ata0-master PIO3 acd0: CDROM <NEC CD-ROM DRIVE:273> at ata1-master using PIO3 Mounting root from ufs:/dev/ad0s1a To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CF55EC8.9030707>