From owner-freebsd-isdn Thu Nov 30 5:27:56 2000 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 3F3D137B400 for ; Thu, 30 Nov 2000 05:27:50 -0800 (PST) Received: from fwd02.sul.t-online.com by mailout06.sul.t-online.com with smtp id 141TkZ-0005S4-05; Thu, 30 Nov 2000 14:27:47 +0100 Received: from t-online.de (320069652622-0001@[62.153.43.236]) by fwd02.sul.t-online.com with esmtp id 141TkL-25lz1sC; Thu, 30 Nov 2000 14:27:33 +0100 Message-ID: <3A2655C9.143A68C4@t-online.de> Date: Thu, 30 Nov 2000 14:27:37 +0100 From: yuleses@t-online.de (Radoy Pavlov) X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Subject: userppp and tun Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320069652622-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I'm trying to setup AVM Fritz PCI with FreeBSD 4.1.1-RELEASE. Made new kernel, card is working fine, added tun device. Looked at those examples at /usr/share/examples/ppp/ and made my scripts. Still that does not work for me. I'm gonna post some dumps and perhaps anyone can resolve my mistake / problem. Sorry for the lenght (wanted to post "all" relevant info). ------- isdnd.rc ------- system ratesfile = /etc/isdn/isdnd.rates # name & location of rates file useacctfile = yes # generate accouting info to file acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file rtprio = 25 # modify isdnd's priority # # blah # entry name = blah usrdevicename = rbch usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = * remote-phone-incoming = * local-phone-dialout = my_phone remote-phone-dialout = isp_phone remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 240 idletime-outgoing = 30 ratetype = 0 unitlength = 90 unitlengthsrc = aocd dialretries = 3 dialrandincr = on recoverytime = 25 usedown = off downtries = 2 downtime = 30 ------- ppp.conf -------------- default: set log Phase Chat LCP IPCP CCP tun command set device /dev/i4brbch0 # Raw B-channel devices set speed sync isdn: set phone isp_phone # Replace this with your ISPs phone number set authname "my_account" set authkey ****** set enddisc mac # Assuming you have a LAN enable lqr set reconnect 3 5 set redial 3 10 set lqrperiod 45 disable pred1 deflate deny pred1 deflate set timeout 60 300 # We have no chat scripts in the ISDN world (yet) set dial set login set hangup # enable dns # Ask the peer what to put in resolv.conf # Take a wild guess at an IP number and let the other side decide set ifaddr 1.1.1.1/0 2.2.2.2/0 255.255.255.0 add! default hisaddr set mrru 1500 # Multilink mode please set mru 1504 # Room for the MP header clone 1,2 # Two new links link deflink rm # And get rid of the original one link * set mode auto # Automatically manage the second link set autoload 10 80 30 # Down @10% usage, up at 80% set server /tmp/pavilion "" 0177 # Listen on a diagnostic port ----------------- Some dumps: ----------------- host# ppp -auto isdn Warning: Local: bind: Address already in use Nov 30 10:02:59 tokra ppp[200]: tun0: Warning: Local: bind: Address already in u se Warning: set server: Failed 4 Nov 30 10:02:59 tokra ppp[200]: tun0: Warning: set server: Failed 4 ----------------- ppp.log ----------------- ----------- Nov 30 09:52:10 tokra ppp[168]: Phase: Using interface: tun0 Nov 30 09:52:10 tokra ppp[168]: Phase: deflink: Created in closed state Nov 30 09:52:10 tokra ppp[168]: tun0: Command: default: set device /dev/i4brbch0 Nov 30 09:52:10 tokra ppp[168]: tun0: Command: default: set speed sync Nov 30 09:52:10 tokra ppp[168]: tun0: Phase: PPP Started (interactive mode). Nov 30 09:52:14 tokra ppp[168]: tun0: Command: /dev/tty: dial isdn Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set phone isp_phone Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set authname my_account Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set authkey ******** Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set enddisc mac Nov 30 09:52:14 tokra ppp[168]: tun0: Phase: Found interface rl0 for 192.168.0.2 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: enable lqr Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set reconnect 3 5 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set redial 3 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set lqrperiod 45 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: disable pred1 deflate Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: deny pred1 deflate Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set timeout 60 300 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set dial Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set login Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set hangup Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set ifaddr 10.0.0.1/0 10.0. 0.2/0 255.255.255.0 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: add! default hisaddr Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set mrru 1500 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set mru 1504 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: clone 1,2 Nov 30 09:52:14 tokra ppp[168]: tun0: Phase: 1: Cloned in closed state Nov 30 09:52:14 tokra ppp[168]: tun0: Phase: 2: Cloned in closed state Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: link deflink rm Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: link * set mode auto Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set autoload 10 80 30 Nov 30 09:52:14 tokra ppp[168]: tun0: Command: isdn: set server /tmp/pavilion ** ****** 0177 Nov 30 09:52:14 tokra ppp[168]: tun0: Warning: Local: bind: Address already in u se Nov 30 09:52:14 tokra ppp[168]: tun0: Warning: set server: Failed 4 --------------- last conf file :/ rc.conf --------------- isdn_enable="YES" # Enable the ISDN subsystem (or NO). isdn_fsdev="NO" # Output device for fullscreen mode (or NO for daemon mo isdn_flags="-dn -d0x1f9" # Flags for isdnd isdn_trace="NO" # Enable the ISDN trace subsystem (or NO). isdn_traceflags="-f /var/tmp/isdntrace0" network_interfaces="tun0 lo0 rl0" ---------------- I'm reeeeally sorry about the leght. Hope this can help to find my mistake. Thanks in advance Radoy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message