Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2001 16:48:37 +0100
From:      "Alex" <d_f0rce@gmx.de>
To:        <freebsd-isdn@freebsd.org>
Cc:        <freebsd-questions@freebsd.org>
Subject:   ISDN dialin - Problems with userland ppp
Message-ID:  <NEBBIKIHMLCDHCFEOMAHGEBBCBAA.d_f0rce@gmx.de>

next in thread | raw e-mail | index | archive | help
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   = <mydialoutnr>
local-phone-incoming  = <mydialinnr>
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 <myauthname>
 set authkey <mypassword>
 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




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