From owner-freebsd-isdn Sat Jul 29 13:50:38 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (Postfix) with ESMTP id 1B0D237B76E for ; Sat, 29 Jul 2000 13:50:29 -0700 (PDT) (envelope-from mh@cs.tu-berlin.de) Received: from cs.tu-berlin.de (130-149-145-172.dialup.cs.tu-berlin.de [130.149.145.172]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA06194 for ; Sat, 29 Jul 2000 22:45:46 +0200 (MET DST) Message-ID: <39835067.D68A449C@cs.tu-berlin.de> Date: Sat, 29 Jul 2000 22:45:11 +0100 From: Matthias Heidbrink X-Mailer: Mozilla 4.61 [en] (OS/2; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isdn@FreeBSD.ORG Subject: Problems setting up an sppp connection Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm quite new to FreeBSD and have got problems with getting an sppp connection running. After I've been trieing for days, it seems to me that it is not directly an ISDN problem, but an sppp, routing or firewall problem. Hardware: 486-133, 80 MB RAM, Teles S0/16.3 card Software: FreeBSD 4.0, i4b 0.90 Configuration: See below. I configured my sppp according to the example in Hellmuth's nice "The care and feeling...". BTW, the GZIPped PostScript version at "http://www.freebsd-support.de/i4b/" seems to be defective. Syntoms: ----------------------------- bash-2.03# ping 191.1.1.5 PING 191.1.1.5 (191.1.1.5): 56 data bytes ^C --- 191.1.1.5 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss bash-2.03# telnet 191.1.1.5 Trying 191.1.1.5... telnet: connect to address 191.1.1.5: Can't assign requested address telnet: Unable to connect to remote host bash-2.03# -------------------------------- The remote address is correct, the same thing works perfectly from my OS/2 machine (also a BSD TCP/IP stack 8-)) using ISDNPM. Repeating does not make any difference. During such tries it seems that an ISDN connection is established, but no data is transmitted via the interface: -------------- bash-2.03# ifconfig isp0 isp0: flags=a015 mtu 1500 inet6 fe80::200:1cff:fed7:6060%isp0 prefixlen 64 scopeid 0xd inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff bash-2.03# telnet 191.1.1.5 Trying 191.1.1.5... telnet: connect to address 191.1.1.5: Can't assign requested address telnet: Unable to connect to remote host bash-2.03# ifconfig isp0 isp0: flags=a055 mtu 1500 inet6 fe80::200:1cff:fed7:6060%isp0 prefixlen 64 scopeid 0xd inet 192.168.173.64 --> 0.0.0.1 netmask 0xffffffff -------------- Any ideas? Following below: My isdnd.rc, my setup script and other configuration stuff. Ciao, Matthias xxxxxxxxxxxxxxxxxxxxxxxxxxxx Output from "ipfw -a l": ------------------- 32000 403608 57961837 allow ip from any to any 32100 0 0 allow icmp from any to any 65535 75 5017 deny ip from any to any ------------------- (I tried to configure it to "bypass mode" for my experiments) Relevant part from "netstat -r": ----------------- Internet: Destination Gateway Flags Netif Expire default isp0 USc isp0 0.0.0.1 0.0.0.0 UH isp0 localhost localhost UH lo0 130.149.148.160/29 link#1 UC rl0 => mh 0:60:97:a2:e8:22 UHLW rl0 857 mh3 localhost UGHS lo0 192.168.99 link#1 UCSc rl0 => ----------------- The net 130.149.148.160/29 is "mine", but I don't use it externally any more. My isdnd.rc: ------------------------------ # Isdn configuration for mh3 system acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file monitor-allowed = no # global switch: monitor on/off monitor-port = 451 # default monitor TCP port monitor = "/var/run/isdn-monitor" monitor-access = fullcmd monitor-access = channelstate, logevents monitor-access = callin, callout ratesfile = /etc/isdn/isdnd.rates # name & location of rates file rtprio = 25 # modify isdnd's process priority #======================================================================= # entry section: PPP #====================================================================== entry name = CaranoB # Carano, BerliKomm isdncontroller = 0 isdnchannel = -1 usrdevicename = isp usrdeviceunit = 0 # local-phone-dialout = xxxxxxxx # Herauswaehlende Telefonnummer local-phone-incoming = xxxxxxxx # Annahme Einwahl auf dieser Nummer remote-phone-dialout = xxxxxxxx # Angerufene Telefonnummer(n) remote-phone-incoming = xxxxxxxx # Annahme Einwahl von dieser Nummer remdial-handling = first b1protocol = hdlc dialin-reaction = accept dialout-type = normal ratetype = 0 unitlength = 90 unitlengthsrc = rate idle-algorithm-outgoing = fix-unit-size idletime-incoming = 240 idletime-outgoing = 30 dialretries = 3 dialrandincr = on recoverytime = 10 usedown = off downtries = 2 downtime = 30 #connectprog = ip-up #disconnectprog = ip-down # EOF ######################################################################### ------------------------------- My setup script: ------------------ #!/bin/sh echo "configuring I4BISDN/PPP-interface isp0:" echo "" echo "removing previous configuration" ifconfig isp0 delete -link1 down echo "" echo "setting PPP options" spppcontrol isp0 myauthproto=chap spppcontrol isp0 myauthname=mh spppcontrol isp0 myauthsecret=guesswhat echo "" echo "configuring IP src/dst address, netmask and link flags" ifconfig isp0 0.0.0.0 0.0.0.1 netmask 0xffffffff link1 debug echo "" echo "finished" -------------------------- Entries in /var/log/messages: ------------------------ Jul 29 22:11:32 mh3 /kernel: isp0: lcp down(opened) Jul 29 22:11:32 mh3 /kernel: isp0: phase terminate Jul 29 22:11:32 mh3 /kernel: isp0: ipcp down(opened) Jul 29 22:11:32 mh3 /kernel: isp0: ipcp close(starting) Jul 29 22:11:32 mh3 /kernel: isp0: Down event (carrier loss) Jul 29 22:11:32 mh3 /kernel: isp0: lcp close(starting) Jul 29 22:11:32 mh3 /kernel: isp0: phase dead Jul 29 22:11:57 mh3 /kernel: isp0: lcp open(initial) Jul 29 22:11:57 mh3 /kernel: isp0: phase establish Jul 29 22:11:58 mh3 /kernel: isp0: Up event Jul 29 22:11:58 mh3 /kernel: isp0: lcp up(starting) Jul 29 22:11:58 mh3 /kernel: isp0: lcp output Jul 29 22:11:58 mh3 /kernel: isp0: lcp input(req-sent): Jul 29 22:11:58 mh3 /kernel: isp0: lcp parse opts: lcp/0x0 [rej] mru auth-proto lcp/0x11 [rej] lcp/0x13 [rej] send conf-rej Jul 29 22:11:58 mh3 /kernel: isp0: lcp output Jul 29 22:11:58 mh3 /kernel: isp0: lcp input(req-sent): Jul 29 22:11:58 mh3 /kernel: isp0: lcp input(ack-rcvd): Jul 29 22:11:58 mh3 /kernel: isp0: lcp parse opts: mru auth-proto Jul 29 22:11:58 mh3 /kernel: isp0: lcp parse opt values: mru 1524 auth-proto send conf-ack Jul 29 22:11:58 mh3 /kernel: isp0: lcp output Jul 29 22:11:58 mh3 /kernel: isp0: lcp tlu Jul 29 22:11:58 mh3 /kernel: isp0: phase authenticate Jul 29 22:11:58 mh3 /kernel: isp0: chap input Jul 29 22:11:58 mh3 /kernel: isp0: chap output Jul 29 22:11:58 mh3 /kernel: isp0: chap success: \x0 Jul 29 22:11:58 mh3 /kernel: isp0: phase network Jul 29 22:11:58 mh3 /kernel: isp0: ipcp open(initial) Jul 29 22:11:58 mh3 /kernel: isp0: ipcp up(starting) Jul 29 22:11:58 mh3 /kernel: isp0: ipcp output Jul 29 22:11:59 mh3 /kernel: isp0: ipcp input(req-sent): Jul 29 22:11:59 mh3 /kernel: isp0: ipcp parse opts: compression [rej] address send conf-rej Jul 29 22:11:59 mh3 /kernel: isp0: ipcp output Jul 29 22:11:59 mh3 /kernel: isp0: rejecting protocol Jul 29 22:11:59 mh3 /kernel: isp0: lcp output Jul 29 22:11:59 mh3 /kernel: isp0: ipcp input(req-sent): Jul 29 22:11:59 mh3 /kernel: isp0: ipcp nak opts: address [wantaddr 192.168.173.64] [agree] Jul 29 22:11:59 mh3 /kernel: isp0: ipcp output Jul 29 22:11:59 mh3 /kernel: isp0: ipcp input(req-sent): Jul 29 22:11:59 mh3 /kernel: isp0: ipcp parse opts: address Jul 29 22:11:59 mh3 /kernel: isp0: ipcp parse opt values: address 0.0.0.1 [ack] send conf-ack Jul 29 22:11:59 mh3 /kernel: isp0: ipcp output Jul 29 22:11:59 mh3 /kernel: isp0: ipcp input(ack-sent): Jul 29 22:11:59 mh3 /kernel: isp0: ipcp tlu Jul 29 22:12:53 mh3 /kernel: isp0: lcp down(opened) Jul 29 22:12:53 mh3 /kernel: isp0: phase terminate Jul 29 22:12:53 mh3 /kernel: isp0: ipcp down(opened) Jul 29 22:12:53 mh3 /kernel: isp0: ipcp close(starting) Jul 29 22:12:53 mh3 /kernel: isp0: Down event (carrier loss) Jul 29 22:12:53 mh3 /kernel: isp0: lcp close(starting) Jul 29 22:12:53 mh3 /kernel: isp0: phase dead ------------------------ Log from tcpdump (from a previous try): ------------------------ 21:33:00.671691 ID-188 LCP: Configure-Request 01bc 0004 21:33:00.736981 ID-001 LCP: Configure-Request, Vendor-Ext, Max-Rx-Unit=1524, Auth-Prot CHAP/MD5, Multilink-MRRU, Multilink-ED 0101 001e 0004 0000 0104 05f4 0305 c223 0511 0405 f413 0903 00c0 7b90 0c1c 21:33:00.737457 ID-001 LCP: Configure-Reject, Vendor-Ext, Multilink-MRRU, Multilink-ED 0401 0015 0004 0000 1104 05f4 1309 0300 c07b 900c 1c 21:33:00.738366 ID-188 LCP: Configure-Ack 02bc 0004 21:33:00.762784 ID-002 LCP: Configure-Request, Max-Rx-Unit=1524, Auth-Prot CHAP/MD5 0102 000d 0104 05f4 0305 c223 05 21:33:00.763163 ID-002 LCP: Configure-Ack, Max-Rx-Unit=1524, Auth-Prot CHAP/MD5 0202 000d 0104 05f4 0305 c223 05 21:33:00.779506 ID-001 CHAP: Challenge, Value=d079209b2dbbbf80795739565b8e359c, Name=IsdnRtr1 0101 001d 10d0 7920 9b2d bbbf 8079 5739 565b 8e35 9c49 7364 6e52 7472 31 21:33:00.780067 ID-001 CHAP: Response, Value=22ea19534a2b8886f770d0ced3e67a15, Name=mh 0201 0017 1022 ea19 534a 2b88 86f7 70d0 ced3 e67a 156d 68 21:33:01.321592 ID-001 CHAP: Success 0301 0005 00 21:33:01.321981 ID-189 IPCP: IP-Address=0.0.0.0 01bd 000a 0306 0000 0000 21:33:01.324613 ID-001 IPCP: IP-Compression-Protocol 0101 0010 0206 002d 0f01 0306 bf01 013a 21:33:01.324948 ID-001 IPCP: IP-Compression-Protocol 0401 000a 0206 002d 0f01 21:33:01.326659 ID-001 CCP: 0101 000a 1106 0001 0103 21:33:01.326866 ID-190 LCP: Protocol-Reject 08be 0010 80fd 0101 000a 1106 0001 0103 21:33:01.336496 ID-189 IPCP: IP-Address=192.168.173.58 03bd 000a 0306 c0a8 ad3a 21:33:01.337425 ID-191 IPCP: IP-Address=192.168.173.58 01bf 000a 0306 c0a8 ad3a 21:33:01.338583 ID-002 IPCP: IP-Address=191.1.1.58 0102 000a 0306 bf01 013a 21:33:01.338942 ID-002 IPCP: IP-Address=191.1.1.58 0202 000a 0306 bf01 013a 21:33:01.349449 ID-191 IPCP: IP-Address=192.168.173.58 02bf 000a 0306 c0a8 ad3a ------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message