Initial import from FreeBSD RELENG_4:
[dragonfly.git] / share / examples / ppp / ppp.conf.isdn
1 #
2 # Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
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.
13 #
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
24 # SUCH DAMAGE.
25 #
26 # $FreeBSD: src/share/examples/ppp/ppp.conf.isdn,v 1.5.2.7 2003/05/03 21:35:06 keramida Exp $
27
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)
31 #
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.
35 #
36 isdn:
37  set phone 12345678     # Replace this with your ISPs phone number
38
39  set authname "somename"  # Replace these with your login name & password.
40  set authkey "somepasswd" # This profile assumes you're using PAP or CHAP.
41
42  set enddisc mac        # Assuming you have a LAN
43
44  enable lqr
45  set reconnect 3 5
46  set redial 3 10
47  set lqrperiod 45
48  disable pred1 deflate mppe
49  deny pred1 deflate mppe
50
51  set timeout 60 300     # The minimum charge period is 5 minutes, so don't
52                         # hangup before then
53
54  # We have no chat scripts in the ISDN world (yet)
55  set dial
56  set login
57  set logout
58  set hangup
59
60  set device /dev/i4brbch0 /dev/i4brbch1         # Raw B-channel devices
61  set speed sync                                 # ISDN is synchronous
62
63  enable dns                     # Ask the peer what to put in resolv.conf
64
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
67  add! default hisaddr
68
69  set mrru 1500                          # Multilink mode please
70  set mru 1504                           # Room for the MP header
71
72  clone 1,2                              # Two new links
73  link deflink rm                        # And get rid of the original one
74
75  link * set mode auto                   # Automatically manage the second link
76  set autoload 10 80 30                  # Down @10% usage, up at 80%, 30s sample
77
78  set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------)
79
80 #
81 # When phone calls become free (say 0:00 Saturday morning), we may want
82 # this in crontab (``crontab -l'', not /etc/crontab):
83 #
84 #     1 0 0 0 6 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial
85 #
86 # and when we have to pay again (say 23:59 Sunday night), we may want
87 # this:
88 #
89 #     54 23 0 0 0 /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode auto
90 #
91 # And of course just in case of a weekend reboot, add
92 # /usr/local/etc/rc.d/ppp.sh:
93 #
94 #   #! /bin/sh
95 #   [ ."$1" != .start ] && exit 0
96 #   case `date +%w` in
97 #   6|0) /usr/sbin/pppctl /var/run/ppp/ppp-isdn link \* set mode ddial;;
98 #   esac