Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Nov 1999 12:13:35 +0100
From:      Luke Roberts <luke@roberts.nl>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   setting up i4b with userland ppp on FreeBSD 3.2
Message-ID:  <4.2.0.58.19991102114958.0098eba0@pop.roberts.nl>

next in thread | raw e-mail | index | archive | help
Hi,

I've had i4b 0.83 set up for quite some time now on FreeBSD 3.2 with a 
Teles 16.3 isa non pnp plat card but would like to try Userland PPP to get 
rid of the 14b-L2-i4b_T200_timeout and 14b-L3-T305_timeout which keep 
killing 14b's sppp conection to my internet provider.

I took a look at userland PPP but am not very experienced (I was dead glad 
I got sppp up and running).

Please could somebody send me their config files and the shell script they 
use to start the whole caboosh up? Below are my conf files to get i4b up 
with sppp. Maybe they can help somebody help me.

Thanks a zillion,

Luke



1. my natd conf file (/etc/natd.conf)

use_sockets
port 6668
interface isp0
# EOF #########################################################################


2. the sppp conf file (/etc/ppp-xs4all.rc)

#------------------------------------------------------------------------------
# /etc/ppp-xs4all.rc
#------------------------------------------------------------------------------

#!/bin/sh
echo "killing old isp0 ip number"
ifconfig isp0 delete -link1 down

echo "starting pap"
spppcontrol isp0 myauthproto=pap

echo "initialising login name"
spppcontrol isp0 myauthname=myname

echo "initialising passwd"
spppcontrol isp0 myauthsecret=mypassword

echo "initialising isp0 device with 0.0.0.0"
ifconfig isp0 0.0.0.0 0.0.0.1 netmask 0xffffffff mtu 576 link1

# EOF #########################################################################


3. the isdnd conf file (/etc/isdn/isdnd-xs4all.rc)

#------------------------------------------------------------------------------
#
#	example of a configuration file for the isdn daemon
#	---------------------------------------------------
#
#	$Id: isdnd.rc,v 1.11 1998/12/18 17:17:57 hm Exp $
#
#	last edit-date: [Fri Dec 18 18:05:57 1998]
#
#	NOTICE:
#	=======
#	This configuration file is an EXAMPLE only and MUST be edited
#	carefully to get the desired results!
#
#	Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
#	for reference !
#
#------------------------------------------------------------------------------

#==============================================================================
# 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

# regular expression pattern matching
# -----------------------------------

regexpr	= "xs4all outgoing call active"	
regprog = isdn-up
regexpr = "xs4all outgoing call disconnected"
regprog = isdn-down
regexpr = "<unknown> incoming call from"
regprog = isdn-incoming


# realtime priority section
# -------------------------

rtprio		= 25			# modify isdnd's process priority


#=======================================================================
# entry section: PPP example
#======================================================================
entry
name			= xs4all
usrdevicename		= isp	
usrdeviceunit		= 0
isdncontroller  	= 0
isdnchannel		= -1
local-phone-incoming	= 02555xxxxx 	
remote-phone-incoming	= 0235315666
local-phone-dialout	= 2555xxxxx
remote-phone-dialout	= 0235315666	
remdial-handling	= first
dialin-reaction		= reject
dialout-type		= normal
b1protocol		= hdlc
idletime-incoming	= 180
idletime-outgoing	= 180
ratetype		= 0
unitlength		= 0
unitlengthsrc		= conf
dialretries		= 3
dialrandincr		= on
recoverytime		= 25
usedown			= on
downtries		= 5
downtime		= 10

# EOF #########################################################################


4. and finaly the script which gets the whole thing going (/etc/goxs4all.rc)
    I start this script from /etc with ./goxs4all.rc


#! /bin/sh

pidnat=`cat /var/run/natd.pid`
pid=`cat /var/run/isdnd.pid`

echo "Killing old isdnd"
kill $pid
sleep 3
kill $pid
sleep 3
echo "Starting new isdnd"
isdnd -c /etc/isdn/isdnd-xs4all.rc -f -r /dev/ttyv4
sleep 3
echo "Starting new sPPP"
./ppp-xs4all.rc
echo "Updating natd"
sleep 3
kill -HUP $pidnat
sleep 3
kill -HUP $pidnat
sleep 3
echo "Updating gateway"
route delete default
sleep 3
route add default -interface isp0
echo "This ship can sail again! (I hope)"
# EOF #########################################################################



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?4.2.0.58.19991102114958.0098eba0>