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 $
27 # $DragonFly: src/share/examples/ppp/ppp.conf.isdn,v 1.2 2003/06/17 04:36:57 dillon Exp $
29 # This is an example ppp profile for bringing up a multilink ppp connection
30 # over ISDN. It needs at least version 0.83.0 of the i4b code. An example
31 # isdnd configuration file is also supplied in this directory (isdnd.rc)
33 # NOTE: This is for use with i4b-supported ISDN cards. If you have an
34 # external Terminal Adapter (TA) plugged into a serial port on your
35 # machine, you should use the TA example in ppp.conf.sample.
38 set phone 12345678 # Replace this with your ISPs phone number
40 set authname "somename" # Replace these with your login name & password.
41 set authkey "somepasswd" # This profile assumes you're using PAP or CHAP.
43 set enddisc mac # Assuming you have a LAN
49 disable pred1 deflate mppe
50 deny pred1 deflate mppe
52 set timeout 60 300 # The minimum charge period is 5 minutes, so don't
55 # We have no chat scripts in the ISDN world (yet)
61 set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices
62 set speed sync # ISDN is synchronous
64 enable dns # Ask the peer what to put in resolv.conf
66 # Take a wild guess at an IP number and let the other side decide
67 set ifaddr 172.16.0.1/0 212.0.0.0/0 0 0
70 set mrru 1500 # Multilink mode please
71 set mru 1504 # Room for the MP header
73 clone 1,2 # Two new links
74 link deflink rm # And get rid of the original one
76 link * set mode auto # Automatically manage the second link
77 set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample
79 set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------)
82 # When phone calls become free (say 0:00 Saturday morning), we may want
83 # this in crontab (``crontab -l'', not /etc/crontab):
85 # 1 0 0 0 6 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial
87 # and when we have to pay again (say 23:59 Sunday night), we may want
90 # 54 23 0 0 0 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode auto
92 # And of course just in case of a weekend reboot, add
93 # /usr/local/etc/rc.d/ppp.sh:
96 # [ ."$1" != .start ] && exit 0
98 # 6|0) /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial;;