summaryrefslogtreecommitdiffstats
path: root/share/examples/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-11-30 22:22:09 +0000
committerbrian <brian@FreeBSD.org>2000-11-30 22:22:09 +0000
commit4527aceec8ba7696bb5dfffdb30def60fd80577c (patch)
tree1dafbe3a7afd90851b763ae06509c0c629886c93 /share/examples/ppp
parentba3d6eb3b3c6822a11f213e1b312c6f93576a294 (diff)
downloadFreeBSD-src-4527aceec8ba7696bb5dfffdb30def60fd80577c.zip
FreeBSD-src-4527aceec8ba7696bb5dfffdb30def60fd80577c.tar.gz
Update some misleading comments, empty ``set logout'', and add a
comment describing how to take advantage of telcos that give free phone calls at certain times.
Diffstat (limited to 'share/examples/ppp')
-rw-r--r--share/examples/ppp/ppp.conf.isdn29
1 files changed, 25 insertions, 4 deletions
diff --git a/share/examples/ppp/ppp.conf.isdn b/share/examples/ppp/ppp.conf.isdn
index df0bd01..3cdc394 100644
--- a/share/examples/ppp/ppp.conf.isdn
+++ b/share/examples/ppp/ppp.conf.isdn
@@ -41,8 +41,8 @@ isdn:
set reconnect 3 5
set redial 3 10
set lqrperiod 45
- disable pred1 deflate
- deny pred1 deflate
+ disable pred1 deflate mppe
+ deny pred1 deflate mppe
set timeout 60 300 # The minimum charge period is 5 minutes, so don't
# hangup before then
@@ -50,6 +50,7 @@ isdn:
# We have no chat scripts in the ISDN world (yet)
set dial
set login
+ set logout
set hangup
set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices
@@ -68,6 +69,26 @@ isdn:
link deflink rm # And get rid of the original one
link * set mode auto # Automatically manage the second link
- set autoload 10 80 30 # Down @10% usage, up at 80%
+ set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample
- set server /tmp/pavilion "" 0177 # Listen on a diagnostic port
+ set server /tmp/ppp-isdn "" 0177 # The diagnostic port (-rw-------)
+
+#
+# When phone calls become free (say 0:00 Saturday morning), we may want
+# this in crontab (``crontab -l'', not /etc/crontab):
+#
+# 1 0 0 0 6 /usr/sbin/pppctl /tmp/ppp-isdn link \* set mode ddial
+#
+# and when we have to pay again (say 23:59 Sunday night), we may want
+# this:
+#
+# 54 23 0 0 0 /usr/sbin/pppctl /tmp/ppp-isdn link \* set mode auto
+#
+# And of course just in case of a weekend reboot, add
+# /usr/local/etc/rc.d/ppp.sh:
+#
+# #! /bin/sh
+# [ ."$1" != .start ] && exit 0
+# case `date +%w` in
+# 6|0) /usr/sbin/pppctl /tmp/ppp-isdn link \* set mode ddial;;
+# esac
OpenPOWER on IntegriCloud