Re: ppp, isdnd ... usw...

From: Dominik Brettnacher <domi(at)saargate.de>
Date: Thu, 11 Feb 1999 07:41:35 +0100 (CET)

On Wed, 10 Feb 1999, andre(at)anneck.de wrote:

> ...i4bsd lt. anweisung installiert... kernel compiliert... device wird
> erkannt...
> isdnd -d0cf9 -f -t vt100
> gibt mir einen tollen bildschirm ohne fehlermeldungen (habe jetzt
> ne fritz karte)....
> Ich habe mich durch's handbook...
> durch die readme's ... etc gewühlt.
> Aber ich verstehe _noch_ nicht was ich in
> a) /etc/isdn/isdnd.rc
> b) /etc/ppp/ppp.conf
> eigentlich drin stehen haben muß damit mal ein einfaches ping ins
> internet klappt... :-(

gleich vorap: alles unterhalb /etc/ppp kannst Du für ISDN vergessen. Mach
Dich mal mit isdnd.rc(5) und spppcontrol(8) vertraut.

> Hat jemand mal nen tipp, oder zeit was ausführliches zu tippen,
> oder ggf. mal ein config file mit kommentaren versehen so das ich
> meine entsprechend anpassen kann?....

Bitte. Anpassen mußt Du evtl. die Kombinationen aus regexpr und regprog,
in jedem Falle *-phone-* und evtl. connectprog / disconnectprog. Der Rest
sollte dann laufen.

#==============================================================================
# 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 = no # global switch: monitor on/off
monitor-port = 3001 # 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

# ratesfile
# ---------

ratesfile = /etc/isdn/isdnd.rates # name & location of rates file

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

#regexpr = "connected.*KTS" # look for matches in log messages
#regprog = connectKTS # execute program when match is found
regexpr = "incoming call" # wir starten ein Script, wenn
regprog = "incomingcall" # jemand anruft

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

rtprio = 25 # modify isdnd's process priority

###############################################################################
entry
name = lf
usrdevicename = isp
usrdeviceunit = 0
isdncontroller = 0
isdnchannel = -1
local-phone-incoming = 0000
remote-phone-incoming = 0000
local-phone-dialout = 0000
remote-phone-dialout = 0000
remdial-handling = first
dialin-reaction = accept
dialout-type = normal
b1protocol = hdlc
idletime-incoming = 240
idletime-outgoing = 30
earlyhangup = 5
ratetype = 0
unitlength = 90
unitlengthsrc = rate
dialretries = 3
dialrandincr = on
recoverytime = 25

connectprog = is-up
disconnectprog = is-down

Dann gehören dazu noch ein paar Befehle, die ich hier in /etc/rc.local
untergebracht habe:

[...]
echo -n 'ppp / ISDN...'
echo -n 'isdnd...'
/usr/local/bin/isdnd
echo -n 'ifconfig...'
ifconfig isp0 link1 x.x.x.x x.x.x.x netmask 0xffffff00
ifconfig isp0 down
echo -n 'sppp...'
spppcontrol isp0 myauthproto=pap myauthname="xxxx" myauthsecret="xxxx"
hisauthproto=none
echo -n 'ifconfig...'
ifconfig isp0 up
echo -n 'setting routes...'
route add default -interface isp0
echo -n 'ipfw...'
#modload /lkm/ipfw_mod.o
#ipfw add 65534 allow ip from any to any
#ipfw add 00100 deny icmp from any to any via isp0
#ipfw add 00101 deny udp from any to any 53 via isp0
#ipfw add 00102 deny tcp from any to any 53 via isp0

echo '.'

Dort mußt Du den ifconfig-Aufruf anpassen (IP-Adressen!) und den von
spppcontrol (Login).

Die auskommentierten Zeilen machen hier eine Art-Filter, der den Rechner
am ständigen Rauswählen hindert.

Noch Fragen?

-- 
Dominik
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 11 Feb 1999 - 07:42:12 CET

search this site