From owner-freebsd-hackers Sun Aug 10 09:54:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA29364 for hackers-outgoing; Sun, 10 Aug 1997 09:54:25 -0700 (PDT) Received: from ns.ge.com (ns.ge.com [192.35.39.24]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA29355 for ; Sun, 10 Aug 1997 09:54:18 -0700 (PDT) Received: from thomas.ge.com (thomas.ge.com [3.47.28.21]) by ns.ge.com (8.8.6/8.8.6) with ESMTP id MAA12346; Sun, 10 Aug 1997 12:54:15 -0400 (EDT) Received: from burg.is.ge.com (burg.is.ge.com [3.19.120.24]) by thomas.ge.com (8.8.4/8.7.5) with ESMTP id MAA16928; Sun, 10 Aug 1997 12:53:40 -0400 (EDT) Received: (from burg@localhost) by burg.is.ge.com (8.8.6/8.8.6) id SAA29206; Sun, 10 Aug 1997 18:47:07 +0200 (MET DST) Date: Sun, 10 Aug 1997 18:47:07 +0200 (MET DST) Message-Id: <199708101647.SAA29206@burg.is.ge.com> From: Dick van den Burg MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: marc@bowtie.nl Cc: Wolfgang Helbig , peter@grendel.IAEhv.nl (Peter Korsten), hackers@FreeBSD.ORG Subject: Re: ISDN drivers/cards In-Reply-To: <199708100859.KAA27622@nietzsche.bowtie.nl> References: <199708091332.PAA00255@helbig.informatik.ba-stuttgart.de> <199708100859.KAA27622@nietzsche.bowtie.nl> X-Mailer: VM 6.22 under 19.15p7 XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is how I did it ....: $Id: bisdn-howto.txt,v 1.3 1997/07/15 18:46:57 burg Exp $ HOW TO use the bisdn package with FreeBSD. 1. fetch ftp://ftp.muc.ditec.de/isdn/bisdn-097.tar.gz fetch ftp://ftp.muc.ditec.de/isdn/BISDN-ppp-FreeBSD2.2.tgz fetch ftp://ftp.muc.ditec.de/isdn/bisdntest-2.tar.gz Read and follow the instruction in the README in bisdntest-2.tar.gz This will give you a new kernel with support for the ISDN adapter. 2. Read the instruction in Readme.PPP and do only the bisdnd and isdnpppd parts of the instruction. The kernel has already been built in step 1. 10. Configure bisdnd. The following examples are from my setup: I have a local lan (10.228.100.0) and I want to connect (only from my host) to my ISP with dynamic IP addresses and to my place of work where I have a fixed IP address. The entry in /etc/bisdn/bisdnd.cfg for the fixed IP address: ############################################################################ entry # this keyword starts a configuration entry # ========================================= name = WORK # symbolic name for this entry/link # any alphanumeric value, just for identificatio n interface = ippp1 # name of the interface / service # possible entries for interface are: # ipi IP over ISDN, = i/f number # tty login via a tty # answ telephone answering # play telephone playback controller = 0 # controller number to use for outgoing calls # (is configured by the 'isdntype' keyword) isdntype = dss1 # isdn protocol type for this controller # possible values are '1tr6' and 'dss1' telnrem-ldo = 0203334444 # telephone number used to dial out to the # remote site telnrem-rdi = 999 # telephone number used to detect/verify a # remote site calling into the local system # a '*' indicates anyone can call in telnloc-ldo = 070111222 # my own local telephone number used to tell # the remote site who i am when dialing out. # (in case of the 1TR6 protocol this must be # the local systems 'EAZ') telnloc-rdi = 999 # my own local telephone number used to verify # me as a correct destination when i'm called # by a remote site. # (in case of the 1TR6 protocol this must be # the local systems 'EAZ') reaction = reject # what to do when remote site calls in # possible values are: # accept - accept incoming call # reject - reject incoming call # callback - hangup and call back # calledback - after dialing i'm called back # alert - only Juergen knows ... protocol = raw # protocol to use for this link, values: # raw - raw HDLC frames # ui - ui frames # x75 - X.75 encapsulation # t70 - T.70 protocol # t90 - T.90 protocol # iso - ISO 8208 protocol dialretries = 3 # number of retries when dialing out # recoverytime = 5 # time in seconds to wait between dial retries # callbackwait = 5 # time in seconds to wait before attempting # to call back a site which will be called back # by this site idletime-in = 180 # close incoming connection after being idle # this time in seconds idletime-out = 120 # close outgoing connection after being idle # this time in seconds unitlength-dyn = off # calculate the idle time for outgoing # connections dynamically based on the time # between two charging units. possible values # are either 'on' or 'off'. blocksize = 1900 # max number of byte for an isdn block # ratetype = 1 # which rate entry to use from bisdnd.rates changeproc = "|/etc/bisdn/start_ppp_%D %N %I" # ############################################################################ The entry for my ISP: ############################################################################ entry # this keyword starts a configuration entry # ========================================= name = Euronet # symbolic name for this entry/link # any alphanumeric value, just for identificatio n interface = ippp0 # name of the interface / service # possible entries for interface are: # ipi IP over ISDN, = i/f number # tty login via a tty # answ telephone answering # play telephone playback controller = 0 # controller number to use for outgoing calls # (is configured by the 'isdntype' keyword) isdntype = dss1 # isdn protocol type for this controller # possible values are '1tr6' and 'dss1' #telnrem-ldo = 08450798667 # telephone number used to dial out to the telnrem-ldo = 0793600111 # telephone number used to dial out to the # remote site telnrem-rdi = 999 # telephone number used to detect/verify a # remote site calling into the local system # a '*' indicates anyone can call in telnloc-ldo = 070111222 # my own local telephone number used to tell # the remote site who i am when dialing out. # (in case of the 1TR6 protocol this must be # the local systems 'EAZ') telnloc-rdi = 999 # my own local telephone number used to verify # me as a correct destination when i'm called # by a remote site. # (in case of the 1TR6 protocol this must be # the local systems 'EAZ') reaction = reject # what to do when remote site calls in # possible values are: # accept - accept incoming call # reject - reject incoming call # callback - hangup and call back # calledback - after dialing i'm called back # alert - only Juergen knows ... protocol = raw # protocol to use for this link, values: # raw - raw HDLC frames # ui - ui frames # x75 - X.75 encapsulation # t70 - T.70 protocol # t90 - T.90 protocol # iso - ISO 8208 protocol dialretries = 3 # number of retries when dialing out # recoverytime = 5 # time in seconds to wait between dial retries # callbackwait = 5 # time in seconds to wait before attempting # to call back a site which will be called back # by this site idletime-in = 180 # close incoming connection after being idle # this time in seconds idletime-out = 120 # close outgoing connection after being idle # this time in seconds unitlength-dyn = off # calculate the idle time for outgoing # connections dynamically based on the time # between two charging units. possible values # are either 'on' or 'off'. blocksize = 1900 # max number of byte for an isdn block # ratetype = 1 # which rate entry to use from bisdnd.rates # changeproc = "|/etc/bisdn/start_ppp_%D %N %I" # #=========================================================================== ############################################################################ The current bisdnd has some prblems with parsing the changeproc entries and currently does not allow more than one changeproc entry. The following patches are a workaround. You only need those patches when you have more than one destination. diff -r -c -P bisdn/bisdnd/config.c bisdn.old/bisdnd/config.c *** bisdn/bisdnd/config.c Sun Jul 13 21:01:15 1997 --- bisdn.old/bisdnd/config.c Sun Jul 13 19:12:08 1997 *************** *** 232,238 **** else if((!strncmp(buffer, CF_CHANGEPROC, strlen(CF_CHANGEPROC))) && (mode == MODE_ENTRY)) { ! if((handle_eflag(&flags, FL_CHANGEPROC, CF_CHANGEPROC, config_entries, line)) == ERROR) goto config_error; if((optstr(buffer, &conf[config_entries].changeproc[0], 0, line)) == ERROR) goto config_error; --- 232,238 ---- else if((!strncmp(buffer, CF_CHANGEPROC, strlen(CF_CHANGEPROC))) && (mode == MODE_ENTRY)) { ! if((handle_sflag(&sflags, FL_CHANGEPROC, CF_CHANGEPROC, line)) == ERROR) goto config_error; if((optstr(buffer, &conf[config_entries].changeproc[0], 0, line)) == ERROR) goto config_error; *************** *** 784,797 **** ptr++; bptr = dest; ! if (*ptr == '"') { ! *bptr++ = *ptr++; ! while (*ptr && (*ptr != '"')) *bptr++ = *ptr++; ! } ! else ! while (*ptr && (*ptr != '#') && (isprint(*ptr)) && (!isspace(*ptr))) ! *bptr++ = *ptr++; *bptr = '\0'; return(GOOD); } --- 784,793 ---- ptr++; bptr = dest; ! ! while (*ptr && (*ptr != '#') && (isprint(*ptr)) && (!isspace(*ptr))) *bptr++ = *ptr++; ! *bptr = '\0'; return(GOOD); } diff -r -c -P bisdn/bisdnd/mux.c bisdn.old/bisdnd/mux.c *** bisdn/bisdnd/mux.c Sun Jul 13 19:03:25 1997 --- bisdn.old/bisdnd/mux.c Sun Jul 13 19:12:08 1997 *************** *** 326,332 **** for(i=4;i > > and firewalling. > > > > So there is at least some use of bisdn-097 and it should be similar > > in other Eurorpean countries. > > > > > I need PPP to make my ISDN card of use and though the bisdn code > > > may be okay (I can neither confirm nor deny that), installing it > > > is a real pain in the you-know-what and the PPP-hack looks really > > > yuckie to me. > > > > > > I would be very happy with ISDN-card support as a LKM and a PPP > > > daemon that can talk to something else than a serial line. If > > > I could offer help in this, feel free to mail me. > > > > Just grab bisdntest-2 (if you're running FreeBSD 2.2.2), bisdn-097 > > and BISDN-ppp-FreeBSD2.2.tgz from ftp.muc.ditec.de, try to make it > > work, and fix it if it doesn't. I understand that bisdn is rewritten > > by Hellmuth. The next release might hit the disks in about a year. > > For the time being, a tutorial is needed for installing/configuring > > bisdn and ppp. So if you want to help ... > > > > Yeahh, go for it Peter ;) > > (you might even be able to persuade me to help too) > > Marc. > > > ---------------------------------------------------- > Marc van Kempen BowTie Technology > Email: marc@bowtie.nl WWW & Databases > tel. +31 40 2 43 20 65 > fax. +31 40 2 44 21 86 http://www.bowtie.nl > ---------------------------------------------------- > >