From owner-freebsd-isdn Sun Mar 18 7:48:54 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from lisa.darkworld.prv (pD9505A97.dip.t-dialin.net [217.80.90.151]) by hub.freebsd.org (Postfix) with ESMTP id DD70C37B718; Sun, 18 Mar 2001 07:48:37 -0800 (PST) (envelope-from d_f0rce@gmx.de) Received: from blade (blade.darkworld.prv [192.168.1.2]) by lisa.darkworld.prv (8.11.1/8.11.0) with SMTP id f2IFmUw01694; Sun, 18 Mar 2001 16:48:36 +0100 (CET) (envelope-from d_f0rce@gmx.de) From: "Alex" To: Cc: Subject: ISDN dialin - Problems with userland ppp Date: Sun, 18 Mar 2001 16:48:37 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm sending this to freebsd-questions too, because it seems to be a userland-ppp problem and not an isdn problem. Sorry for the crosspost, if I'm wrong. I'm trying to enable isdn dialin and DSL dialout with i4b and userland ppp. DSL dialout works properly, but I couldn't manage to get ISDN dialin to work. It seems that the interface between isdnd and userland ppp doesn't work because I can see that isdnd is invoking my "regprog" but ppp doesn't take over the connection. I'm using 4.2-R. Here are my config-files: rc.conf ----------------------------------------------------------- ifconfig_xl0="inet 192.168.1.1 netmask 255.255.255.0 mtu 1492" ifconfig_ep0="inet 10.10.1.1 netmask 255.255.255.0 -arp mtu 1492" ppp_enable="YES" ppp_mode="auto" ppp_nat="YES" ppp_profile="default" ppp_user="root" isdn_enable="YES" isdn_fsdev="/dev/ttyv8" isdn_flags="-dn -d0x1f9" ------------------------------------------------------------- isdnd.rc ------------------------------------------------------------- system # Accounting acctall = on acctfile = /var/log/isdnd.acct useacctfile = yes isdntime = on # Monitor-Access monitor-allowed = no monitor-port = 451 monitor = "/var/run/isdn-monitor" monitor-access = fullcmd monitor-access = channelstate, logevents monitor-access = callin, callout monitor = "192.168.1.0/24" monitor-access = restrictedcmd, channelstate, callin, callout regexpr = "DIALIN.*call active" regprog = i4brunppp.bash #regprog = i4brunppp # MAIL settings in case of errors mailer = "/usr/bin/mail" mailto = "root" rtprio = 25 entry name = DIALIN isdncontroller = 0 isdnchannel = -1 usrdevicename = rbch usrdeviceunit = 0 local-phone-dialout = local-phone-incoming = remote-phone-dialout = 0 remote-phone-incoming = * b1protocol = hdlc dialin-reaction = accept dialout-type = normal direction = in idletime-incoming = 300 ratetype = 0 unitlength = 0 unitlengthsrc = conf --------------------------------------------------------------- ppp.conf --------------------------------------------------------------- dialin: set log CCP Command IPCP LCP # I removed this entry, while trying to use the i4brunppp.bash script. # set proctitle ppp-rbch0 enable pap enable proxy set ifaddr 10.10.10.10 10.10.10.11 set timeout 60 set dial set login set hangup set device /dev/i4brbch0 set speed sync # link * set cd 10 default: set device PPPoE:ep0 set speed sync set cd set mru 1492 set mtu 1492 set authname set authkey set log Filter Phase Warning Error Alert set dial set login set ifaddr 10.10.1.1/0 10.0.0.2/0 add default HISADDR set server /var/run/internet "" 0177 nat enable yes set timeout 360 set reconnect 0 5000000 set redial 1+1-10 500000 # set filter alive 0 deny udp src eq 520 set filter alive 1 deny udp dst eq 520 set filter alive 2 deny udp src eq 513 set filter alive 3 deny udp src eq 525 set filter alive 4 deny udp src eq 137 set filter alive 5 deny udp src eq 138 set filter alive 6 deny udp src eq 139 set filter alive 7 deny udp dst eq 137 set filter alive 8 deny udp dst eq 138 set filter alive 9 deny udp dst eq 139 set filter alive 10 deny 0/0 MYADDR icmp set filter alive 11 permit 0/0 0/0 # set filter dial 0 deny udp src eq 513 set filter dial 1 deny udp src eq 525 set filter dial 2 deny udp src eq 137 set filter dial 3 deny udp src eq 138 set filter dial 4 deny udp src eq 139 set filter dial 5 deny udp dst eq 137 set filter dial 6 deny udp dst eq 138 set filter dial 7 deny udp dst eq 139 set filter dial 8 deny tcp finrst set filter dial 9 permit 0 0 -------------------------------------------------- As I couldn't find "i4brunppp" in my standard FreeBSD- Distribution Environment, I leeched i4b 0.90 and compiled i4brunppp from the sources. As it seemed that "i4brunppp" didn't take over the connection, I tried a bash script I found in the archives: /etc/isdn/i4brunppp.bash ---------------------------------------------------- #/usr/local/bin/bash /usr/sbin/ppp -direct dialin <> /dev/i4brbch0 ---------------------------------------------------- Of course I previously installed bash from the ports and i4brbch is configured within my kernel-conf file. Here is a piece of logfile of an incoming session: ---------------------------------------------------- Mar 18 14:20:12 lisa isdnd[142]: CHD 00002 DIALIN incoming call active (ctl 0, ch 1, rbch0) Mar 18 14:20:12 lisa isdnd[142]: DBG exec_prog: /etc/isdn/i4brunppp, args: 00002 DIALIN incoming call active (ctl 0, ch 1, rbch0) Mar 18 14:20:12 lisa isdnd[142]: DBG FSM event [msg-con-act-ind]: [accepted => connected] Mar 18 14:20:12 lisa isdnd[142]: DBG F_MCAI: Connection active! Mar 18 14:20:12 lisa isdnd[142]: DBG normal child (pid=386) termination, exitstat = 2 Mar 18 14:20:49 lisa isdnd[142]: CHD 00002 DIALIN incoming call disconnected (remote) Mar 18 14:20:49 lisa isdnd[142]: CHD 00002 DIALIN cause 16: Normal call clearing (Q.850) Mar 18 14:20:49 lisa isdnd[142]: CHD 00002 DIALIN connected 37 seconds Mar 18 14:20:49 lisa isdnd[142]: CHD 00002 DIALIN accounting: in 440, out 0 ------------------------------------------------------ i4brunppp was in this case my bash-script, not the program provided by i4b. I'm worried about the following line: --------- Mar 18 14:20:12 lisa isdnd[142]: DBG normal child (pid=386) termination, exitstat = 2 --------- If this is my i4brunppp bash script then it was invoked but exited immidiately. Unfortunately I couldn't find any ppp entries in the logs though I had enabled full ppp-logging at this time. Any ideas?? I tried to provide as many information as I can think of. Please e-mail me if you need more logs/traces or whatever. Greetings, Alex PS: Please answer directly, as I'm not on the list. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Mar 18 8: 2:30 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from ns.raditex.se (mail.raditex.se [192.5.36.21]) by hub.freebsd.org (Postfix) with ESMTP id C690837B71A; Sun, 18 Mar 2001 08:02:24 -0800 (PST) (envelope-from gh@raditex.se) Received: from gandalf.raditex.se (gandalf.raditex.se [192.5.36.18]) by ns.raditex.se (8.9.3/8.9.3) with ESMTP id RAA75455; Sun, 18 Mar 2001 17:02:21 +0100 (CET) (envelope-from gh@raditex.se) Date: Sun, 18 Mar 2001 17:02:21 +0100 (CET) From: G Hasse X-Sender: gh@gandalf.sickla.raditex.se To: Alex Cc: freebsd-isdn@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: ISDN dialin - Problems with userland ppp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 18 Mar 2001, Alex wrote: > Hi, > > I'm sending this to freebsd-questions too, because it > seems to be a userland-ppp problem and not an isdn > problem. Sorry for the crosspost, if I'm wrong. > > I'm trying to enable isdn dialin and DSL dialout with > i4b and userland ppp. DSL dialout works properly, but > I couldn't manage to get ISDN dialin to work. It seems > that the interface between isdnd and userland ppp doesn't work > because I can see that isdnd is invoking my "regprog" but > ppp doesn't take over the connection. I have the same experience. Dialing out is fine. Dialing in dosen't work. If you find any solution - please let me know. GH ---------------------------------------------------------------- Göran Hasse email: gh@raditex.se Tel: +46 8 694 92 70 Raditex AB http://www.raditex.se Fax: +46 8 442 05 91 Sickla Alle 7, 1tr Mob: 070-5530148 131 34 NACKA, SWEDEN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Mar 18 14:57:37 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id C32F737B719; Sun, 18 Mar 2001 14:57:30 -0800 (PST) (envelope-from garyj@peedub.muc.de) Received: from fwd03.sul.t-online.com by mailout06.sul.t-online.com with smtp id 14em73-0003yw-03; Sun, 18 Mar 2001 23:57:25 +0100 Received: from peedub.muc.de (320038014727-0001@[217.80.40.38]) by fmrl03.sul.t-online.com with esmtp id 14em6u-14S3mKC; Sun, 18 Mar 2001 23:57:16 +0100 Received: by peedub.muc.de (8.11.3/8.11.1) id f2IMvEM05198; Sun, 18 Mar 2001 23:57:14 +0100 (CET) (envelope-from garyj) Content-Type: text/plain; charset="iso-8859-1" From: Gary Jennejohn Reply-To: garyj@jennejohn.org To: "Alex" , Subject: Re: ISDN dialin - Problems with userland ppp Date: Sun, 18 Mar 2001 23:57:03 +0100 X-Mailer: KMail [version 1.2] Cc: References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01031823570300.00708@peedub.muc.de> Content-Transfer-Encoding: 8bit X-Sender: 320038014727-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday 18 March 2001 16:48, Alex wrote: > Hi, > > I'm sending this to freebsd-questions too, because it > seems to be a userland-ppp problem and not an isdn > problem. Sorry for the crosspost, if I'm wrong. > > I'm trying to enable isdn dialin and DSL dialout with > i4b and userland ppp. DSL dialout works properly, but > I couldn't manage to get ISDN dialin to work. It seems > that the interface between isdnd and userland ppp doesn't work > because I can see that isdnd is invoking my "regprog" but > ppp doesn't take over the connection. > > I'm using 4.2-R. > Here are my config-files: > [snip] First, 2 questions: 1) have you ever tried using ppp to dial out, to make sure that it even functions ? 2) IIRC ppp has to run as root. Do you start it as root or is it setuid to root ? I personally have never tried to use ppp for dialins, I've always used isppp for that. It just works. -- Gary Jennejohn garyj@jennejohn.org gj@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Mar 19 3:23:53 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by hub.freebsd.org (Postfix) with ESMTP id BFD7537B718 for ; Mon, 19 Mar 2001 03:23:50 -0800 (PST) (envelope-from garyj@peedub.muc.de) Received: from fwd06.sul.t-online.com by mailout01.sul.t-online.com with smtp id 14exlN-0001tM-00; Mon, 19 Mar 2001 12:23:49 +0100 Received: from peedub.muc.de (320038014727-0001@[217.80.40.21]) by fmrl06.sul.t-online.com with esmtp id 14exlB-0HqFkmC; Mon, 19 Mar 2001 12:23:37 +0100 Received: (from garyj@localhost) by peedub.muc.de (8.11.3/8.11.1) id f2JBNXh00647; Mon, 19 Mar 2001 12:23:33 +0100 (CET) (envelope-from garyj) Content-Type: text/plain; charset="iso-8859-1" From: Gary Jennejohn Reply-To: garyj@jennejohn.org To: "matjaz" Subject: Re: 3com-isdn problem Date: Mon, 19 Mar 2001 12:23:22 +0100 X-Mailer: KMail [version 1.2] References: <004001c0b048$fdd20fb0$c207a1d5@cable.kks.net> In-Reply-To: <004001c0b048$fdd20fb0$c207a1d5@cable.kks.net> Cc: freebsd-isdn@freebsd.org MIME-Version: 1.0 Message-Id: <01031912232200.00628@peedub.muc.de> Content-Transfer-Encoding: 8bit X-Sender: 320038014727-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Monday 19 March 2001 08:48, matjaz wrote: > I have made a user ppp gateway on an ISDN line.When i connect a ASUSCOM > device, averything works just fine. I tried it with a 3COM-USR device and I > get no connection through to my ISP.When i work my way through log files, > it shows as if the modem is somehow trying CHAP authentication (ISP has > PAP). Is there somebody with expirience with 3Com ISDN devices.I know there > is nothing wrong with ppp configuration,because with other devices it works > perfect.Perhaps i could configure the device to negotiate PAP,i just dont > know how > First, a minor nit: this mail should have gone to the ISDN list (CC'd and hackers removed). Secondly, the type of card used should have no influence on how ppp behaves. The hardware knows nothing about the protocol being used. I recommend turning on logging in pppc.conf. The output might be helpful in identifying the source of your problem. -- Gary Jennejohn garyj@jennejohn.org gj@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Mar 19 11:19:48 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from lisa.darkworld.prv (pD9505A66.dip.t-dialin.net [217.80.90.102]) by hub.freebsd.org (Postfix) with ESMTP id 8939637B71B; Mon, 19 Mar 2001 11:19:21 -0800 (PST) (envelope-from d_f0rce@gmx.de) Received: from blade (blade.darkworld.prv [10.10.10.2]) by lisa.darkworld.prv (8.11.1/8.11.0) with SMTP id f2JJJ7T11112; Mon, 19 Mar 2001 20:19:07 +0100 (CET) (envelope-from d_f0rce@gmx.de) From: "Alex" To: "G Hasse" Cc: , Subject: AW: ISDN dialin - Problems with userland ppp - SOLVED Date: Mon, 19 Mar 2001 20:19:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > -----Ursprüngliche Nachricht----- > Von: G Hasse [mailto:gh@raditex.se] > Gesendet: Sonntag, 18. März 2001 17:02 > An: Alex > Cc: freebsd-isdn@FreeBSD.ORG; freebsd-questions@FreeBSD.ORG > Betreff: Re: ISDN dialin - Problems with userland ppp > > > On Sun, 18 Mar 2001, Alex wrote: > > > > I'm trying to enable isdn dialin and DSL dialout with > > i4b and userland ppp. DSL dialout works properly, but > > I couldn't manage to get ISDN dialin to work. It seems > > that the interface between isdnd and userland ppp doesn't work > > because I can see that isdnd is invoking my "regprog" but > > ppp doesn't take over the connection. > > I have the same experience. Dialing out is fine. Dialing in dosen't > work. If you find any solution - please let me know. Hi, Yeah, it works!! It seems that there is a problem with /dev/i4brbch0 when using i4bppprun provided with i4b because ppp always looses the connection to the device. Mar 18 18:09:25 lisa ppp[2420]: IPCP: deflink: State change Closed --> Req-Sent Mar 18 18:09:25 lisa ppp[2420]: Error: DoLoop: select(): Bad file descriptor Mar 18 18:09:25 lisa ppp[2420]: IPCP: deflink: SendTerminateReq(1) state = Req-Sent Mar 18 18:09:25 lisa ppp[2420]: IPCP: deflink: State change Req-Sent --> Closing Mar 18 18:09:25 lisa ppp[2420]: Error: Oops, destroying a datalink in state open Mar 18 18:09:25 lisa ppp[2420]: Error: ID0logout: No longer logged in on i4brbch I remade the device and tried a lot of other things but nothing helped. Therefore I decided to switch to a bash-script executing: "/usr/sbin/ppp -direct inc_rbch0 <>/dev/i4brbch0" I first tried using /bin/sh but it seems that sh is not redirecting STDIN and STDOUT at the same time. I could always see the PAP-requests of my site but the remote end didn't answer (Well, probably the remote end answered but the answer wasn't redirected to STDIN of ppp). If you want to try my configuration, you should compile bash2 from the ports and use the following bash-script: /etc/isdn/i4brunppp -------------------------------------------------------------------- #! /usr/local/bin/bash /usr/sbin/ppp -direct inc_rbch0 <>/dev/i4brbch0 -------------------------------------------------------------------- Put it into /etc/isdn/ and name it i4brunppp. Don't forget to set execute-rights. Then you have to edit /etc/isdn/isdnd.rc to suite your needs. Here is my configuration file: /etc/isdn/isdnd.rc -------------------------------------------------------------------- system # Accounting acctall = on acctfile = /var/log/isdnd.acct useacctfile = yes isdntime = on # Monitor-Access - disabled monitor-allowed = no monitor-port = 451 monitor = "/var/run/isdn-monitor" monitor-access = fullcmd monitor-access = channelstate, logevents monitor-access = callin, callout monitor = "10.10.10.0/24" monitor-access = restrictedcmd, channelstate, callin, callout regexpr = "DIALIN.*call active" regprog = i4brunppp # MAIL settings in case of errors mailer = "/usr/bin/mail" mailto = "root" rtprio = 25 entry name = DIALIN isdncontroller = 0 isdnchannel = -1 usrdevicename = rbch usrdeviceunit = 0 local-phone-dialout = local-phone-incoming = remote-phone-dialout = 0 remote-phone-incoming = * b1protocol = hdlc dialin-reaction = accept dialout-type = normal direction = in idletime-incoming = 300 ratetype = 0 unitlength = 0 unitlengthsrc = conf -------------------------------------------------------------- Don't forget to replace and with your local settings. Now you have to edit your ppp.conf in /etc/ppp/ppp.conf Here is mine: /etc/ppp/ppp.conf -------------------------------------------------------------- inc_rbch0: set log CCP Command IPCP LCP enable pap set ifaddr 10.10.40.1 10.10.40.11 set timeout 60 set dial set login set hangup set device /dev/i4brbch0 set speed sync accept dns set dns 10.10.10.1 # disable pred1 # disable passwdauth # disable deflate # disable protocomp # disable vjcomp # # deny acfcomp # deny deflate # deny pred1 # deny protocomp # deny vjcomp -------------------------------------------------------------- This is just the dialin part of my ppp.conf file. You have to replace "set ifaddr" and "set dns" with your local settings. If you change the name of your dialin-config from "inc_rbch0" to something else, you have to change the bash-script too !!!! Uncomment the "disable" and "deny" settings if your clients have problems connecting. I had a Win95 client which didn't like VanJacobsen Compression (vjcomp). You have to poke arround with the settings a bit. Windows 98 and NT 2000 clients don't have these problems. If you want dialout too, then you have to create another entry with your dialout settings. You shouldn't label this entry "default". Use another name (i.e. dialout). If you want dialout on demand you can use the following rc.conf settings: /etc/rc.conf ------------------------------------------------------------- ppp_enable="YES" ppp_mode="auto" ppp_nat="YES" ppp_profile="" ppp_user="root" ------------------------------------------------------------- Replace with your dialout label from /etc/ppp/ppp.conf. If you don't want NAT then replace ppp_nat="YES" with ppp_nat="NO" Test your dialout-config NOW! If your dialout config doesn't work go to http://www.freebsd.org/ and have a look at the documentation. There is lots of documentation for dialout configs. Last but not least you have to edit /etc/ppp/ppp.secret and put your dialin logins and passwords in there. /etc/ppp/ppp.secret example ------------------------------------------------------------- login1 password1 login2 password2 ------------------------------------------------------------- You can do a lot with this file (i.e. assign a specific IP to a specific user). Read the docs if you need such features. That's it. Assuming your local isdn configuration is done correctly and you started isdnd, you should now be able to dialin. You can start isdnd i.e. using: ------------------------------------------------------------- isdn_enable="YES" isdn_fsdev="/dev/ttyv8" isdn_flags="-dn -d0x1f9" ------------------------------------------------------------- in /etc/rc.conf Things you have to watch out for if your dialin still doesn't work: - Check your ISDN configuration. Try to DIALOUT to an ISP only using i4b. If this works, your isdn configuration seems to be correct. - Increase logging of isdnd and ppp. - Is the name of the dialin-label in /etc/isdn/i4brunppp the same as in /etc/ppp/ppp.conf? - If you use dialout at the same time - do you have a second tun device configured in your kernel config. Finally here is my kernel config file. Watch Out! You cannot just append these settings to your config file. You have to change them to suite your needs!!!! --------------------------------------------------------------- # I want NAT, but no firewall => default_to_accept options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT # You need these settings for dialin pseudo-device ppp 2 pseudo-device tun 2 # You want compression? Include those settings. options PPP_BSDCOMP options PPP_DEFLATE # You need bpf too, if you want to use it. options PPP_FILTER # That's my ISDN card. Change this to yours. options "AVM_A1_PCI" device isic0 # ISDN settings. Change them to your needs. You # probably need most of them. pseudo-device "i4bq921" pseudo-device "i4bq931" pseudo-device "i4b" pseudo-device "i4btrc" 4 pseudo-device "i4bctl" pseudo-device "i4brbch" 4 pseudo-device "i4bipr" 4 options IPR_VJ pseudo-device "i4bisppp" 2 pseudo-device sppp ----------------------------------------------------------------- You don't need all of those settings. It depends on your local needs. Hope this helps. Greetins, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Mar 22 6:38:38 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id B3BC237B71D; Thu, 22 Mar 2001 06:38:29 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.2/8.11.2) with ESMTP id f2MEdPm38953; Thu, 22 Mar 2001 14:39:25 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2MEfGE94295; Thu, 22 Mar 2001 14:41:16 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200103221441.f2MEfGE94295@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Alex" Cc: "G Hasse" , freebsd-isdn@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: AW: ISDN dialin - Problems with userland ppp - SOLVED In-Reply-To: Message from "Alex" of "Mon, 19 Mar 2001 20:19:14 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 22 Mar 2001 14:41:16 +0000 From: Brian Somers Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [.....] > I remade the device and tried a lot of other things but nothing > helped. Therefore I decided to switch to a bash-script executing: > = > "/usr/sbin/ppp -direct inc_rbch0 <>/dev/i4brbch0" > = > I first tried using /bin/sh but it seems that sh is not redirecting > STDIN and STDOUT at the same time. I could always see the PAP-requests > of my site but the remote end didn't answer (Well, probably the remote > end answered but the answer wasn't redirected to STDIN of ppp). [.....] Hmm, sh in -current and -stable *should* handle <> properly.... I'll = look into getting a working example in /usr/share/examples/ppp/*isdn* = ASAP. > Greetins, > Alex -- = Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Mar 22 8:32: 8 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from web6404.mail.yahoo.com (web6404.mail.yahoo.com [128.11.22.152]) by hub.freebsd.org (Postfix) with SMTP id 8592137B71B for ; Thu, 22 Mar 2001 08:31:43 -0800 (PST) (envelope-from dl_ref@yahoo.de) Message-ID: <20010322163143.5624.qmail@web6404.mail.yahoo.com> Received: from [62.155.189.179] by web6404.mail.yahoo.com; Thu, 22 Mar 2001 17:31:43 CET Date: Thu, 22 Mar 2001 17:31:43 +0100 (CET) From: =?iso-8859-1?q?Dennis=20Leist?= Subject: ISDN-Connection via device isp0 breaks down after serveral secs To: freebsd-isdn@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, I hope somenone might help me! After successful dialing in to my ISP the connection breaks down after a few seconds. No TCPIP is working during that short time while connnected, so no ping works. TCP_EXTENSION is off. I tried both auth-proto-types: pap and chap. My System is like this : FreeBSD 4.2, FritzCard! PCI, i4b Version 0.96 my working kernel-conf is ##--------------------------------------------------------------------------- ## ## i4b FreeBSD kernel configuration ## -------------------------------- ## ## last edit-date: [Mon Sep 4 09:35:30 2000] ## ## $Id: CONFIG,v 1.36 2000/09/04 09:17:26 hm Exp $ ## ##--------------------------------------------------------------------------- ## AVM Fritz!Card PCI ## ------------------ device ifpi0 ## ## ISDN Protocol Stack ## ------------------- ## Q.921 / layer 2 - i4b passive cards D channel handling pseudo-device "i4bq921" ## Q.931 / layer 3 - i4b passive cards D channel handling pseudo-device "i4bq931" ## layer 4 - i4b common passive and active card handling pseudo-device "i4b" ## ISDN devices ## ------------ ## userland driver to do ISDN tracing (for passive cards only) pseudo-device "i4btrc" 4 ## userland driver to control the whole thing pseudo-device "i4bctl" ## userland driver for access to raw B channel pseudo-device "i4brbch" 4 ## userland driver for telephony pseudo-device "i4btel" 2 ## network driver for IP over raw HDLC ISDN ## enable VJ header compression detection for ipr i/f options IPR_VJ ## enable logging of first 32 ip packets for ipr i/f's #options IPR_LOG=32 pseudo-device "i4bipr" 4 ## network driver for sync PPP over ISDN pseudo-device "i4bisppp" 4 My isdnd.rc is: #============================================================================== # SYSTEM section: isdnd global configuration parameters #============================================================================== system # accounting # ---------- acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file # monitor # ------- monitor-allowed = yes # global switch: monitor on/off monitor-port = 451 # default monitor TCP port # Monitor rights are granted due to the most specific host/net spec, i.e. in # the example below host 192.168.1.2 will have the rights specified on that # line, even so it belongs to net 192.168.1.0/24 as well. # # A monitor specification may either be: # # - the name of a local (UNIX-domain) socket; this MUST start with a "/" monitor = "/var/run/isdn-monitor" monitor-access = fullcmd monitor-access = channelstate, logevents monitor-access = callin, callout # # - a dotted-quad host spec monitor = "192.168.254.254" monitor-access = restrictedcmd, channelstate, callin, callout # # - a dotted-quad net spec with "/len" (CIDR-style) netmask spec #monitor = "192.168.1.0/24" #monitor-access = restrictedcmd, channelstate, callin, callout # # - a resolveable host name monitor = "localhost" monitor-access = restrictedcmd, channelstate, callin, callout # # - a resolveable net name with "/len" netmask (s.a.) appended #monitor = "up-vision-net/24" #monitor-access = restrictedcmd, channelstate, callin, callout # ratesfile # --------- ratesfile = /etc/isdn/isdnd.rates.D # name & location of rates file # regular expression pattern matching # ----------------------------------- #regexpr = "connected.*XXX" # look for matches in log messages #regprog = connectXXX # execute program when match is found # realtime priority section # ------------------------- rtprio = 25 # modify isdnd's process priority isdntime = on # date/time Info aus dem D-Channel wird in logfile geschrieben beepconnect = on # Es piept beim Connect und Disconnect #======================================================================= # entry section: PPP example #====================================================================== entry name = I4BPPP usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 24 remote-phone-incoming = 010700192070 local-phone-dialout = 25470070 remote-phone-dialout = 010700192070 remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 30 idletime-outgoing = 30 ratetype = 0 unitlength = 60 unitlengthsrc = rate dialretries = 3 dialrandincr = on recoverytime = 25 usedown = off downtries = 5 downtime = 30 I get the following messages from /var/log/messages Mar 20 20:00:24 gateway-test /kernel: isp0: Up event Mar 20 20:00:24 gateway-test /kernel: isp0: lcp up(starting) Mar 20 20:00:24 gateway-test /kernel: isp0: lcp output Mar 20 20:00:24 gateway-test isdnd[228]: DMN date/time from exchange = 0103201959 Mar 20 20:00:24 gateway-test /kernel: isp0: lcp input(req-sent): Mar 20 20:00:24 gateway-test /kernel: isp0: lcp parse opts: auth-proto magic lcp/0x11 [rej] lcp/0x13 [rej] send conf-rej Mar 20 20:00:24 gateway-test /kernel: isp0: lcp output Mar 20 20:00:24 gateway-test /kernel: isp0: lcp input(req-sent): Mar 20 20:00:24 gateway-test /kernel: isp0: lcp input(ack-rcvd): Mar 20 20:00:24 gateway-test /kernel: isp0: lcp parse opts: auth-proto magic Mar 20 20:00:24 gateway-test /kernel: isp0: lcp parse opt values: auth-proto [mine proto/0x0 != his chap] magic 0x32040010 send conf-nak Mar 20 20:00:24 gateway-test /kernel: isp0: lcp output Mar 20 20:00:24 gateway-test /kernel: isp0: lcp input(ack-rcvd): Mar 20 20:00:24 gateway-test /kernel: isp0: lcp parse opts: auth-proto magic Mar 20 20:00:24 gateway-test /kernel: isp0: lcp parse opt values: auth-proto magic 0x32040010 send conf-ack Mar 20 20:00:24 gateway-test /kernel: isp0: lcp output Mar 20 20:00:24 gateway-test /kernel: isp0: lcp tlu Mar 20 20:00:24 gateway-test /kernel: isp0: phase authenticate Mar 20 20:00:24 gateway-test /kernel: isp0: pap output Mar 20 20:00:24 gateway-test /kernel: isp0: pap success Mar 20 20:00:24 gateway-test /kernel: isp0: phase network Mar 20 20:00:24 gateway-test /kernel: isp0: ipcp open(stopped) Mar 20 20:00:24 gateway-test /kernel: isp0: lcp close(opened) Mar 20 20:00:24 gateway-test /kernel: isp0: phase terminate Mar 20 20:00:24 gateway-test /kernel: isp0: lcp output Mar 20 20:00:24 gateway-test /kernel: isp0: lcp input(closing): Mar 20 20:00:24 gateway-test /kernel: isp0: phase dead I also set the device-configuration via sppp and ifconfig. >ifconfig isp0 delete -link1 down >echo "setting sppp options" >ispppcontrol isp0 myauthproto=pap myauthname=arcor myauthsecret=internet hisauthproto=none lcp-timeout=2500 >echo "configuriere isp0" >ifconfig isp0 0.0.0.0 145.253.2.11 netmask 0xffffffff link1 debug What went wrong? Many THX to anybody who can help Greetings Dennis __________________________________________________________________ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Mar 22 13:20:45 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by hub.freebsd.org (Postfix) with ESMTP id 78FEA37B71D; Thu, 22 Mar 2001 13:20:36 -0800 (PST) (envelope-from garyj@peedub.muc.de) Received: from fwd01.sul.t-online.com by mailout02.sul.t-online.com with smtp id 14gCVX-0003ci-03; Thu, 22 Mar 2001 22:20:35 +0100 Received: from peedub.muc.de (320038014727-0001@[62.155.144.76]) by fmrl01.sul.t-online.com with esmtp id 14gCVK-0VM7m4C; Thu, 22 Mar 2001 22:20:22 +0100 Received: by peedub.muc.de (8.11.3/8.11.1) id f2MLKIS85842; Thu, 22 Mar 2001 22:20:18 +0100 (CET) (envelope-from garyj) Content-Type: text/plain; charset="iso-8859-1" From: Gary Jennejohn Reply-To: garyj@jennejohn.org To: Dennis Leist , freebsd-isdn@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: ISDN-Connection via device isp0 breaks down after serveral secs Date: Thu, 22 Mar 2001 22:20:06 +0100 X-Mailer: KMail [version 1.2] References: <20010322163143.5624.qmail@web6404.mail.yahoo.com> In-Reply-To: <20010322163143.5624.qmail@web6404.mail.yahoo.com> MIME-Version: 1.0 Message-Id: <01032222200602.00620@peedub.muc.de> Content-Transfer-Encoding: 8bit X-Sender: 320038014727-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thursday 22 March 2001 17:31, Dennis Leist wrote: > Hi there, > > I hope somenone might help me! > > After successful dialing in to my ISP the connection breaks down after a > few seconds. > No TCPIP is working during that short time while connnected, so no ping > works. TCP_EXTENSION is off. > > I tried both auth-proto-types: pap and chap. > > My System is like this : > FreeBSD 4.2, > FritzCard! PCI, > i4b Version 0.96 > > [big snip] I can't see any obvious errors in any of this, other than the failure to make a connection to your ISP :) I suggest turning on all ISDN trace with isdndebug for all layers and posting the (voluminous) output to the list. It may be possible to see why sppp is hanging up from that. BTW here's a shell script I use to turn debug on/off. #! /bin/sh case $1 in start) for i in 1 2 3 4 do isdndebug -l $i -s 0x3fff done ;; stop) isdndebug -l 1 -s 0 isdndebug -l 2 -s 0x2aa9 isdndebug -l 3 -s 0x2a9 isdndebug -l 4 -s 0x9 ;; # default - do nothing *) ;; esac -- Gary Jennejohn garyj@jennejohn.org gj@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Mar 23 0:53:38 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from bom2.vsnl.net.in (bom2.vsnl.net.in [202.54.1.1]) by hub.freebsd.org (Postfix) with ESMTP id AEA5737B720; Fri, 23 Mar 2001 00:52:40 -0800 (PST) (envelope-from toner1@asianwired.net) Received: from 202.54.1.1 (rsvp-208-187-151-175.ac05.dlls.eli.net [208.187.151.175]) by bom2.vsnl.net.in (Postfix) with SMTP id 9B0C32B28B; Fri, 23 Mar 2001 14:20:28 +0530 (GMT+5:30) To: customer@republic.com Date: Thu, 22 Mar 01 03:22:20 EST From: toner1@asianwired.net Subject: toner supplies Message-Id: <20010323085039.9B0C32B28B@bom2.vsnl.net.in> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org PLEASE FORWARD TO THE PERSON RESPONSIBLE FOR PURCHASING YOUR LASER PRINTER SUPPLIES **** VORTEX SUPPLIES **** -SPECIALS OF THE DAY ON LASER TONER SUPPLIES AT DISCOUNT PRICES-- LASER PRINTER TONER CARTRIDGES COPIER AND FAX CARTRIDGES WE ARE -->THE<-- PLACE TO BUY YOUR TONER CARTRIDGES BECAUSE YOU SAVE UP TO 30% FROM OFFICE DEPOT'S, QUILL'S OR OFFICE MAX'S EVERY DAY LOW PRICES ORDER BY PHONE:1-888-288-9043 ORDER BY FAX: 1-888-977-1577 CUSTOMER SERVICE: 1-888-248-2015 E-MAIL REMOVAL LINE: 1-888-248-4930 UNIVERSITY AND/OR SCHOOL PURCHASE ORDERS WELCOME. (NO CREDIT APPROVAL REQUIRED) ALL OTHER PURCHASE ORDER REQUESTS REQUIRE CREDIT APPROVAL. PAY BY CHECK (C.O.D), CREDIT CARD OR PURCHASE ORDER (NET 30 DAYS). IF YOUR ORDER IS BY CREDIT CARD PLEASE LEAVE YOUR CREDIT CARD # PLUS EXPIRATION DATE. IF YOUR ORDER IS BY PURCHASE ORDER LEAVE YOUR SHIPPING/BILLING ADDRESSES AND YOUR P.O. NUMBER NO SHIPPING CHARGES FOR ORDERS $49 OR OVER ADD $4.75 FOR ORDERS UNDER $49. C.O.D. ORDERS ADD $4.5 TO SHIPPING CHARGES. FOR THOSE OF YOU WHO REQUIRE MORE INFORMATION ABOUT OUR COMPANY INCUDING FEDERAL TAX ID NUMBER, CLOSEST SHIPPING OR CORPORATE ADDRESS IN THE CONTINENTAL U.S. OR FOR CATALOG REQUESTS PLEASE CALL OUR CUSTOMER SERVICE LINE 1-888-248-2015 OUR NEW , LASER PRINTER TONER CARTRIDGE, PRICES ARE AS FOLLOWS: (PLEASE ORDER BY PAGE NUMBER AND/OR ITEM NUMBER) HEWLETT PACKARD: (ON PAGE 2) ITEM #1 LASERJET SERIES 4L,4P (74A)------------------------$44 ITEM #2 LASERJET SERIES 1100 (92A)-------------------------$44 ITEM #3 LASERJET SERIES 2 (95A)-------------------------------$39 ITEM #4 LASERJET SERIES 2P (75A)-----------------------------$54 ITEM #5 LASERJET SERIES 5P,6P,5MP, 6MP (3903A)--$44 ITEM #6 LASERJET SERIES 5SI, 5000 (29A)------------------$95 ITEM #7 LASERJET SERIES 2100 (96A)-------------------------$74 ITEM #8 LASERJET SERIES 8100 (82X)-----------------------$145 ITEM #9 LASERJET SERIES 5L/6L (3906A0------------------$35 ITEM #10 LASERJET SERIES 4V-------------------------------------$95 ITEM #11 LASERJET SERIES 4000 (27X)-------------------------$72 ITEM #12 LASERJET SERIES 3SI/4SI (91A)--------------------$54 ITEM #13 LASERJET SERIES 4, 4M, 5,5M-----------------------$49 HEWLETT PACKARD FAX (ON PAGE 2) ITEM #14 LASERFAX 500, 700 (FX1)----------$49 ITEM #15 LASERFAX 5000,7000 (FX2)------$54 ITEM #16 LASERFAX (FX3)------------------------$59 ITEM #17 LASERFAX (FX4)------------------------$54 LEXMARK/IBM (ON PAGE 3) OPTRA 4019, 4029 HIGH YIELD---------------$89 OPTRA R, 4039, 4049 HIGH YIELD---------$105 OPTRA E----------------------------------------------------$59 OPTRA N--------------------------------------------------$115 OPTRA S--------------------------------------------------$165 - EPSON (ON PAGE 4) ACTION LASER 7000,7500,8000,9000-------$105 ACTION LASER 1000,1500-------------------------$105 CANON PRINTERS (ON PAGE 5) PLEASE CALL FOR MODELS AND UPDATED PRICES FOR CANON PRINTER CARTRIDGES PANASONIC (0N PAGE 7) NEC SERIES 2 MODELS 90 AND 95----------$105 APPLE (0N PAGE 8) LASER WRITER PRO 600 or 16/600------------$49 LASER WRITER SELECT 300,320,360---------$74 LASER WRITER 300 AND 320----------------------$54 LASER WRITER NT, 2NT------------------------------$54 LASER WRITER 12/640--------------------------------$79 CANON FAX (ON PAGE 9) LASERCLASS 4000 (FX3)---------------------------$59 LASERCLASS 5000,6000,7000 (FX2)---------$54 LASERFAX 5000,7000 (FX2)----------------------$54 LASERFAX 8500,9000 (FX4)----------------------$54 CANON COPIERS (PAGE 10) PC 3, 6RE, 7 AND 11 (A30)---------------------$69 PC 300,320,700,720 and 760 (E-40)--------$89 IF YOUR CARTRIDGE IS NOT LISTED CALL CUSTOMER SERVICE AT 1-888-248-2015 90 DAY UNLIMITED WARRANTY INCLUDED ON ALL PRODUCTS. ALL TRADEMARKS AND BRAND NAMES LISTED ABOVE ARE PROPERTY OF THE RESPECTIVE HOLDERS AND USED FOR DESCRIPTIVE PURPOSES ONLY. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message