Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 18:05:01 +0100
From:      Brian Somers <brian@freebsd-services.com>
To:        Alexander Thorp <atecsc@yahoo.com>
Cc:        freebsd-net@FreeBSD.ORG, brian@freebsd-services.com
Subject:   Re: PPP problem 
Message-ID:  <200110181705.f9IH51b79512@hak.lan.Awfulhak.org>
In-Reply-To: Message from Alexander Thorp <atecsc@yahoo.com>  of "Thu, 18 Oct 2001 17:53:48 BST." <3BCF091C.7AB601D8@yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
You could try enabling tcp/ip and physical logging to see if data is 
being written as expected.

I'd be surprised if this was a ppp problem - it doesn't look at the 
frame payload unless you're using NAT, filtering, or some of the more 
nasty log levels.  Perhaps you've got some rogue firewall rules ?

> I am unable to bring up PPP to my ISP. DNS works, but PING and all TCP-based
> protocols don't. I haven't tried any other UDP-based protocols. I have copied
> here ifconfig -a and netstat -rn output both before bringing the link up and
> while it is up. Lastly I have also copied the relevant lines from ppp.log.
> 
> Does anybody have any idea what is going wrong and how I can fix it?
> 
> Alex Thorp
> 
> # cat /etc/ppp/ppp.conf
> 
> default:
>         set log local phase lcp ipcp debug
>         set device /dev/cuaa1
>         set speed 115200
>         set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
> \\dATDT\\T TIMEOUT 40 CONNECT"
> 
> freeserve:
>         set phone "0123456789"
>         set login
>         set authname MYUSERNAME
>         set authkey MYPASSWORD
>         set timeout 180
>         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
> 
> # uname -a
> FreeBSD MYMACHINE.MYDOMAIN.CO.UK 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18
> 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC 
> i386
> 
> # ifconfig -a
> ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::260:97ff:fe16:71bf%ep0 prefixlen 64 scopeid 0x1 
>         ether 00:60:97:16:71:bf 
>         media: Ethernet 10baseT/UTP
> 
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet6 ::1 prefixlen 128 
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
>         inet 127.0.0.1 netmask 0xff000000 
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> faith0: flags=8000<MULTICAST> mtu 1500
> 
> # netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif Expire
> 127.0.0.1          127.0.0.1          UH          0        0    lo0
> 192.168.1          link#1             UC          1        0    ep0
> 192.168.1.5        0:60:8c:b9:82:ac   UHLW        2      679    ep0    830
> 
> Internet6:
> Destination                       Gateway                       Flags      Netif
> Expire
> ::1                               ::1                           UH          lo0
> fe80::%ep0/64                     link#1                        UC          ep0
> fe80::260:97ff:fe16:71bf%ep0      0:60:97:16:71:bf              UHL         lo0
> fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
> fe80::1%lo0                       link#3                        UHL         lo0
> ff01::/32                         ::1                           U           lo0
> ff02::%ep0/32                     link#1                        UC          ep0
> ff02::%lo0/32                     ::1                           UC          lo0
> 
> # ppp -background freeserve
> Working in background mode
> Using interface: tun0
> Debug: ReadSystem: Checking freeserve (/etc/ppp/ppp.conf).
> Debug: wrote -1: cmd = Add, dst = 0, gateway = 200000a
> PPP enabled
> Phase: Parent: PPP enabled
> 
> # ping www.freebsd.org
> PING freefall.freebsd.org (216.136.204.21): 56 data bytes
> ^C
> --- freefall.freebsd.org ping statistics ---
> 16 packets transmitted, 0 packets received, 100% packet loss
> 
> # netstat -rn
> Routing tables
> 
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif Expire
> default            195.92.66.8        UGSc        1       26   tun0
> 127.0.0.1          127.0.0.1          UH          0        0    lo0
> 192.168.1          link#1             UC          1        0    ep0
> 192.168.1.5        0:60:8c:b9:82:ac   UHLW        2     1578    ep0    643
> 195.92.66.8        62.136.215.63      UH          2        0   tun0
> 
> Internet6:
> Destination                       Gateway                       Flags      Netif
> Expire
> ::1                               ::1                           UH          lo0
> fe80::%ep0/64                     link#1                        UC          ep0
> fe80::260:97ff:fe16:71bf%ep0      0:60:97:16:71:bf              UHL         lo0
> fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
> fe80::1%lo0                       link#3                        UHL         lo0
> fe80::%tun0/64                    fe80::260:97ff:fe16:71bf%tun0 Uc         tun0
> fe80::260:97ff:fe16:71bf%tun0     link#7                        UHL         lo0
> ff01::/32                         ::1                           U           lo0
> ff02::%ep0/32                     link#1                        UC          ep0
> ff02::%lo0/32                     ::1                           UC          lo0
> ff02::%tun0/32                    fe80::260:97ff:fe16:71bf%tun0 UC         tun0
> # ifconfig -a
> ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::260:97ff:fe16:71bf%ep0 prefixlen 64 scopeid 0x1 
>         ether 00:60:97:16:71:bf 
>         media: Ethernet 10baseT/UTP
> 
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet6 ::1 prefixlen 128 
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
>         inet 127.0.0.1 netmask 0xff000000 
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> faith0: flags=8000<MULTICAST> mtu 1500
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>         inet6 fe80::260:97ff:fe16:71bf%tun0 prefixlen 64 scopeid 0x7 
>         inet 62.136.215.63 --> 195.92.66.8 netmask 0xffffff00 
>         Opened by PID 269
> 
> # cat ppp.log
> Oct 15 21:12:22 MYMACHINE ppp[268]: Phase: Using interface: tun0 
> Oct 15 21:12:23 MYMACHINE ppp[268]: Phase: deflink: Created in closed state 
> Oct 15 21:12:23 MYMACHINE ppp[269]: Phase: PPP Started (background mode). 
> Oct 15 21:12:23 MYMACHINE ppp[269]: Phase: bundle: Establish 
> Oct 15 21:12:23 MYMACHINE ppp[269]: Phase: deflink: closed -> opening 
> Oct 15 21:12:23 MYMACHINE ppp[269]: Phase: deflink: Connected! 
> Oct 15 21:12:23 MYMACHINE ppp[269]: Phase: deflink: opening -> dial 
> Oct 15 21:12:46 MYMACHINE ppp[269]: Phase: deflink: dial -> carrier 
> Oct 15 21:12:47 MYMACHINE ppp[269]: Phase: deflink: /dev/cuaa1: CD detected 
> Oct 15 21:12:47 MYMACHINE ppp[269]: Phase: deflink: carrier -> login 
> Oct 15 21:12:47 MYMACHINE ppp[269]: Phase: deflink: login -> lcp 
> Oct 15 21:12:50 MYMACHINE ppp[269]: Phase: bundle: Authenticate 
> Oct 15 21:12:50 MYMACHINE ppp[269]: Phase: deflink: his = PAP, mine = none 
> Oct 15 21:12:50 MYMACHINE ppp[269]: Phase: Pap Output: MYUSERNAME ******** 
> Oct 15 21:12:50 MYMACHINE ppp[269]: Phase: Pap Input: SUCCESS () 
> Oct 15 21:12:51 MYMACHINE ppp[269]: Phase: deflink: lcp -> open 
> Oct 15 21:12:51 MYMACHINE ppp[269]: Phase: bundle: Network 
> Oct 15 21:12:51 MYMACHINE ppp[268]: Phase: Parent: PPP enabled 
> Oct 15 21:13:51 MYMACHINE ppp[269]: Phase: deflink: HDLC errors -> FCS: 2, ADDR:
> 0, COMD: 0, PROTO: 0 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: Signal 15, terminate. 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: bundle: Terminate 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: open -> lcp 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: Disconnected! 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: lcp -> logout 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: logout -> hangup 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: Disconnected! 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: Connect time: 174 secs: 1538
> octets in, 3311 octets out 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: : 45 packets in, 55 packets
> out 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase:  total 27 bytes/sec, peak 173
> bytes/sec on Mon Oct 15 21:15:17 2001 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: deflink: hangup -> closed 
> Oct 15 21:15:17 MYMACHINE ppp[269]: Phase: bundle: Dead 
> Oct 15 21:15:18 MYMACHINE ppp[269]: Phase: PPP Terminated (normal).

-- 
Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110181705.f9IH51b79512>