The Care and Feeding of ISDN4BSD | ||
---|---|---|
13.3.1 Site-A Setup: | 13.3 Userland PPP setup | 14 Bibliography |
13.3.2 Site-B Setup
Now the configuration for Site-B follows. Almost everything has been explained in the Site-A setups, so they are just included here for reference:
- /etc/isdn/isdnd.rc:
# SYSTEM section:
system
ratesfile = /etc/isdn/isdnd.rates
useacctfile = yes
acctall = on
acctfile = /var/log/isdnd.acct
rtprio = 25
mailer = /usr/bin/mail
mailto = "postmaster"
regexpr = "PPP2SITEA.*call active"
regprog = ppp_in_trigger_sitea
# ENTRY section:
entry
name = PPP2SITEA
usrdevicename = rbch
isdncontroller = 0
local-phone-incoming = 57
remote-phone-incoming = 123456789
local-phone-dialout = 57
remote-phone-dialout = 0123456789
remdial-handling = first
dialin-reaction = callback
dialout-type = normal
b1protocol = hdlc
idletime-incoming = 60
idletime-outgoing = 60
earlyhangup = 5
ratetype = 0
unitlength = 90
unitlengthsrc = rate
dialretries = 3
dialrandincr = on
recoverytime = 5
callbackwait = 3
- /etc/isdn/ppp_in_trigger_sitea:
#!/bin/sh
/usr/sbin/pppctl -p secret-password-1 siteb:452 open
exit 0
- /etc/ppp/ppp.conf:
default:
# let pppctl come in
set server 452 secret-password-1
sitea:
# use CHAP
enable chap
# want to use deflate compression
enable deflate
accept deflate
disable pred1
deny pred1 :
# CHAP key and password
set authkey secret-password-2
set authname siteb
# wait time for carrier
set cd 30
# device to use
set device /dev/i4brbch0
# set no dial chat-script used
set dial
# set no hangup chat-script used
set hangup
# myaddr hisaddr netmask
set ifaddr 192.168.168.1 192.168.192.1 255.255.255.255
# set no login chat-script used
set login :
# set dial on demand mode
set mode auto
# the the process title
set proctitle ppp2sitea
# we are a synchronous device
set speed sync
# idletimeout mintimeout
set timeout 60 300
- /etc/ppp/ppp.secret:
# Authname Authkey
sitea secret-password-5
- /usr/local/etc/rc.d/ppp2sitea.sh:
#!/bin/sh
if [ -f /etc/ppp/ppp.conf ]
then
echo -n ' ppp2sitea'
/usr/sbin/ppp -auto -quiet -unit0 sitea
fi