2 # Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
14 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 # $FreeBSD: src/share/examples/ppp/ppp.conf.isdn,v 1.5.2.7 2003/05/03 21:35:06 keramida Exp $
28 # This is an example ppp profile for bringing up a multilink ppp connection
29 # over ISDN. It needs at least version 0.83.0 of the i4b code. An example
30 # isdnd configuration file is also supplied in this directory (isdnd.rc)
32 # NOTE: This is for use with i4b-supported ISDN cards. If you have an
33 # external Terminal Adapter (TA) plugged into a serial port on your
34 # machine, you should use the TA example in ppp.conf.sample.
37 set phone 12345678 # Replace this with your ISPs phone number
39 set authname "somename" # Replace these with your login name & password.
40 set authkey "somepasswd" # This profile assumes you're using PAP or CHAP.
42 set enddisc mac # Assuming you have a LAN
48 disable pred1 deflate mppe
49 deny pred1 deflate mppe
51 set timeout 60 300 # The minimum charge period is 5 minutes, so don't
54 # We have no chat scripts in the ISDN world (yet)
60 set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices
61 set speed sync # ISDN is synchronous
63 enable dns # Ask the peer what to put in resolv.conf
65 # Take a wild guess at an IP number and let the other side decide
66 set ifaddr 172.16.0.1/0 212.0.0.0/0 0 0
69 set mrru 1500 # Multilink mode please
70 set mru 1504 # Room for the MP header
72 clone 1,2 # Two new links
73 link deflink rm # And get rid of the original one
75 link * set mode auto # Automatically manage the second link
76 set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample
78 set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------)
81 # When phone calls become free (say 0:00 Saturday morning), we may want
82 # this in crontab (``crontab -l'', not /etc/crontab):
84 # 1 0 0 0 6 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial
86 # and when we have to pay again (say 23:59 Sunday night), we may want
89 # 54 23 0 0 0 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode auto
91 # And of course just in case of a weekend reboot, add
92 # /usr/local/etc/rc.d/ppp.sh:
95 # [ ."$1" != .start ] && exit 0
97 # 6|0) /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial;;