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